谁装了VS2005 SP1的进来帮个忙

qq43695548 2010-08-06 07:03:01
问题描述,一个asp.net的项目,原来是用VS2005开发的,目前需要修改,但是新机器上没装VS,也不方便装


百度了个“一行命令搞定没有Visual Studio2003(2005)时的手动编译命令”

%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe YourSolutionName.sln /t:Rebuild /p:Configuration=Release /l:FileLogger,Microsoft.Build.Engine;logfile=Build.log

确实好用,不过出现一个问题
error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets" was not found.

又百度了一下,发现一段英文

In the last article Build and deploy web application project using NANT script i discusses how various options and configurations can be set on command line to overrride settings in Microsoft.WebAppliction.targets file. Well that worked perfectly fine. I was configuring a new build server for doing automated builds of the web application. I started getting following build error.

error MSB4019: The imported project "C:\ProgramFiles\MSBuild\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import>declaration is correct, and that the file exists on disk
Well this project was building fine on older machine. There are two options to fix this error.

Install VS2005 SPI on the build machine. Well thats because Web Application Project (WAP) model was made part of SPI1 release. So you are going to need it.
If you do not like installing VS IDE on build machine, then your option is to copy Microsoft.WebApplication.targets file from your older build machine or for that matter any machine that has VS2005 SP1 installed, to this machine at exact location as specified in error message.
That should take care of your build problems.

大概是需要Microsoft.WebApplication.targets这个东西。
装了VS2005 SP1的就有
路径应该是C:\ProgramFiles\MSBuild\Microsoft\VisualStudio\v8.0\WebApplications\Microsoft.WebApplication.targets

麻烦谁有这个文件的直接发到43695548@qq.com
加上你回复的ID,我好给分。多谢
...全文
103 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
宝_爸 2010-08-06
  • 打赏
  • 举报
回复
给你发过去了。
qq43695548 2010-08-06
  • 打赏
  • 举报
回复
现在我只需要能编译就行
修改的部分可以直接用记事本打开改
qq43695548 2010-08-06
  • 打赏
  • 举报
回复
不方便装
wuyq11 2010-08-06
  • 打赏
  • 举报
回复
还是安装vs2008,vs2010吧
qq43695548 2010-08-06
  • 打赏
  • 举报
回复
其他路径下有吗?
跟.net相关的几个目录都帮忙找找呀
teerhu 2010-08-06
  • 打赏
  • 举报
回复
剛試著找了一下,沒找到
Peter200694013 2010-08-06
  • 打赏
  • 举报
回复
公司电脑上装的05,可以周一上班...

62,074

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧