我想发布asp.net网站..通常我做
但我不想按照以上所有步骤进行操作...我会点击.bat发布asp.net网站
我按照这里提到的所有步骤"如何使用命令提示符发布Asp网站" => http://hajloo.wordpress.com/2011/05/02/how-to-publish-asp-web-sites-with-command-prompt/
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="PrecompileWeb">
<AspNetCompiler
VirtualPath="/Web"
PhysicalPath="F:\Build_Automation\trunk\src\Portal\Web\"
TargetPath="F:\Build_Automation\trunk\src\Portal\PrecompiledWeb\Web\"
Force="true"
Debug="true"
FixedNames="True" />
</Target>
</Project>
&#13;
但我收到错误
C:\>msbuild my.xml /p:Configuration=Release
Microsoft (R) Build Engine version 4.0.30319.34209
[Microsoft .NET Framework, version 4.0.30319.34209]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 9/24/2014 6:52:33 PM.
Project "C:\my.xml" on node 1 (default targets).
PrecompileWeb:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /Web -p
"C:\Users\Administrator\Documents\Visual Studio 2010\WebSites\xxxx\xxxx\\"
-f -d -fixednames C:\Users\Administrator\Desktop\PPatch\test\
C:\Users\Administrator\Documents\Visual Studio 2010\WebSites\xxxx\xxxx\web.co
nfig(8): error ASPCONFIG: Unrecognized attribute 'targetFramework'. Note that a
ttribute names are case-sensitive. [C:\my.xml]
Done Building Project "C:\my.xml" (default targets) -- FAILED.
Build FAILED.
"C:\my.xml" (default target) (1) ->
(PrecompileWeb target) ->
C:\Users\Administrator\Documents\Visual Studio 2010\WebSites\xxxx\xxxx\web.
config(8): error ASPCONFIG: Unrecognized attribute 'targetFramework'. Note that
attribute names are case-sensitive. [C:\my.xml]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:02.17
&#13;
我用谷歌搜索了我尝试按照解决方案的错误
请建议我..有可能吗?如果是的话,我做错了什么或我错过了什么
由于
答案 0 :(得分:0)