ビン展開用に ASP.Net MVC アプリをセットアップしています。コンパイルされたビューをリリースに含めたいので、Steven Sanderson の Pro MVC ブックのアドバイスに従い、app.csproj ファイルを変更して含めました。
<Target Name="AfterBuild" Condition="'$(Configuration)'=='Release'">
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)" />
</Target>
残念ながら、この変更によりビルド エラーが発生します。
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. C:\Users\sylvie\Documents\Visual Studio 2010\Projects\app\app\obj\release\package\packagetmp\web.config
エラーメッセージに対処する方法、またはコンパイルされたビューを別の方法でbinディレクトリに取得する方法はありますか?
ありがとう!ダッフィー