cc.net で多くのソリューションを含むプロジェクトの公開を自動化しようとしています。私は msbuild を使用しており、これは aspnetcompiler xml ファイルを呼び出します。問題は、ディレクトリに多くのソリューションが含まれていることです。aspnetcompiler を実行すると、次のエラーが表示されます。
errorASPCONFIG: allowDefinition='MachineToApplication' として登録されたセクションをアプリケーション レベルを超えて使用するとエラーになります。このエラーは、IIS で仮想ディレクトリがアプリケーションとして構成されていないことが原因である可能性があります
多くのフォーラムで提供されているすべての可能な解決策を試しました。しかし、20 個のプロジェクトから特定のプロジェクトを実行するように aspnet_compiler に明示的に指示する方法がわかりません。
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コンパイラに伝える方法がわかりません。これを行う方法を考えてから、これを公開してください。