问题描述
我正在尝试创建模板解决方案(.sln)文件,因为我需要创建大量解决方案文件来调试网站。我希望能够在解决方案文件中指定以下选项:
- 在运行启动页面之前,请构建页面而不是网站
- 请勿将网站建设为解决方案(Property pages Build page)的一部分
- 将特定页面设置为开始操作(Property pages Start Options page)
打开解决方案后,我可以在项目的“属性页”中指定它们,但我想自动执行此操作。我必须在preProject部分中选择哪些选项?这是我的解决方案的网站项目部分当前的样子:
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "http://example.com","http://example.com","{9063D280-E18E-4CE6-9402-9F92EB5E5BCA}"
ProjectSection(WebsiteProperties) = preProject
UseIISExpress = "false"
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"
ProjectReferences = "{739287b1-791c-4afa-b160-511ddeb1a4ff}|Blue.dll;{620DD145-A6CF-403A-B9F1-FFA8D207572A}|Green.dll;{dd43db01-8a2d-475a-b7fc-ebd7cc5b90a7}|Red.dll;{20b2d746-818b-4c2b-9c2a-e1e0e8e365e9}|External.dll;"
Debug.AspNetCompiler.VirtualPath = "/example.com"
Debug.AspNetCompiler.PhysicalPath = "F:\User\example\www"
Debug.AspNetCompiler.TargetPath = "precompiledWeb\example.com\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.Fixednames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/example.com"
Release.AspNetCompiler.PhysicalPath = "F:\User\example\www"
Release.AspNetCompiler.TargetPath = "precompiledWeb\example.com\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.Fixednames = "false"
Release.AspNetCompiler.Debug = "False"
SlnRelativePath = "F:\User\example\www"
EndProjectSection
EndProject
我是否可以在本节中指定任何选项来产生与在Visual Studio中修改网站项目的属性页相同的结果?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)