0
我有一個ASPX項目,我創建了一個LocalFolderRelease發佈配置文件,這是一個FileSystem類型發佈。我想要使用一個MSBUILD.EXE部署包在一個特定的(團隊市)客戶機使用下列選項:MSBUILD +本地文件夾部署
msbuild.exe MyAspxProject.csproj /p:Platform=AnyCPU;Configuration=Release;PackageAsSingleFile=False;PublishProfile=LocalFolderRelease
此刪除一個錯誤:
MyAspxProject\obj\Release\AspnetCompileMerge\Source\bin\web.config(73): error ASPCONFIG: 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. [MyAspxProject.csproj]
我真的不理解它是什麼意思,也不明白爲什麼它在IIS中驗證這一點,因爲我不想在這個這個機器上安裝這個部署包:(
我想要的是禁用IIS檢查步驟在生成這個deplo期間y包。
在我的應用程序中沒有其他web.config,唯一一個在應用程序源文件夾的根目錄中!
web.config中的指定行包含以下行: –