Error “Unable to copy the file xxx from the project template to the project. Can't find the file \xxxx” when create VS template
2012-02-12 15:08
946 查看
开源项目常常需要按照一定的模板创建项目代码, Visual Studio 的模板功能非常适合这种需要。
创建模板其实其实非常容易,使用VS的“Export Template”就可以轻松搞定。
不过如果想支持一些高级功能,比较根据项目名自动修改文件名,Namespace之类就需要一些手工工作了。具体可以参考: http://weblogs.asp.net/scottgu/archive/2005/09/09/424780.aspx
不过在修改完各种项目文件以及手工修改完.vstemplate文件后,在测试模板时得到这样的错误:
网上搜了一下,原因是还没有修改.csproj文件,需要在这个文件中同样替换如$safeprojectname”一样的参数。
网上的帖子:http://forums.asp.net/t/941773.aspx/1?Project+Templates+Error
创建模板其实其实非常容易,使用VS的“Export Template”就可以轻松搞定。
不过如果想支持一些高级功能,比较根据项目名自动修改文件名,Namespace之类就需要一些手工工作了。具体可以参考: http://weblogs.asp.net/scottgu/archive/2005/09/09/424780.aspx
不过在修改完各种项目文件以及手工修改完.vstemplate文件后,在测试模板时得到这样的错误:
网上搜了一下,原因是还没有修改.csproj文件,需要在这个文件中同样替换如$safeprojectname”一样的参数。
网上的帖子:http://forums.asp.net/t/941773.aspx/1?Project+Templates+Error
相关文章推荐
- Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- 创建虚拟机错误解决:Unable to find a 'userdata.img' file for ABI x86 to copy into the AVD folder.
- Android问题集锦之九:Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder.
- unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder
- 报错“Unable to find a 'userdata.img' file for ABIarmeabi to copy into the AVD folder.”
- 解决unable to get the project file from the web server
- Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!解决方法
- ERROR: Unable to launch the RTL Schematic process. The input NGR file, Can not fnd the module的解决方法
- Visual Studio .Net 2003 Error: "Refreshing the project failed. Unable to retrieve folder information from the server."
- Unable to create project from archetype Error merging velocity templates 解决办法
- Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder
- Unable to open the physical file xxxx. Operating system error 2
- VS 2008 Setup Project Build 出现 ERROR: Could not create the file,发现是Chrome 启服务Software Protection的导致。
- unable to get system library for the project" error when import android project to eclips
- Handler crashed with error can't find templatefile in the path 解决方法
- fix errors 1088: “Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied” and 1334: “Exception: System.IO.FileLoadException”
- Unable to get the project file from the Web Server(in .NET 2005 IDE)
- How do I fix the linker error in project upgraded from VS2010 to VS2013 where the linker is looking
- android创建AVD时的报错:Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD
- Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive