我正在尝试自动发布一个包含多个解决方案的项目到cc.net。我使用msbuild,它会调用一个aspnetcompiler xml文件。问题是我的目录中包含许多解决方案,当我运行aspnetcompiler时,它会给出以下错误。
errorASPCONFIG:在应用程序级别之外使用注册为allowDefinition ='MachineToApplication'的部分是错误的。这个错误可能是由于虚拟目录在IIS中没有配置为应用程序引起的。
我已经尝试了许多论坛中提供的所有可能的解决方案。但我不知道如何明确告诉aspnet_compiler从20个项目中执行特定的项目。
这是我的AspNetCompilerConfiguration.xml文件。
errorASPCONFIG:在应用程序级别之外使用注册为allowDefinition ='MachineToApplication'的部分是错误的。这个错误可能是由于虚拟目录在IIS中没有配置为应用程序引起的。
我已经尝试了许多论坛中提供的所有可能的解决方案。但我不知道如何明确告诉aspnet_compiler从20个项目中执行特定的项目。
I am using the ccnet build to call aspnet complier
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
<!--msbuild exe directory -->
<workingDirectory>C:\cc\test\code\</workingDirectory>
<!--your working directory -->
<projectFile>C:\Program Files\CruiseControl.NET\server\AspNetCompilerConfiguration.xml</projectFile>
<!--the configuration xml file which will hold AspNetCompiler lines-->
<logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
这是我的AspNetCompilerConfiguration.xml文件。
<Project
xmlns = "http://schemas.microsoft.com/developer/msbuild/2003"
name = "AspNetPreCompile"
DefaultTargets = "PrecompileWeb">
<Target Name = "PrecompileWeb">
<AspNetCompiler
VirtualPath = "test"
PhysicalPath = "C:\cc\test\code\"
TargetPath = "C:\cc\testitr\deploy\"
Force = "true"
Debug = "true"
Updateable = "true"/>
</Target>
</Project>
现在我想运行 C:\cc\test\code\Com.Project1.sln,但我不知道如何告诉 aspnet 编译器。有什么想法吗?然后如何发布此内容。