Visual studio 在Visual Studio解决方案文件的项目前部分中可以指定哪些选项?

Visual studio 在Visual Studio解决方案文件的项目前部分中可以指定哪些选项?,visual-studio,iis,visual-studio-2017,web-site-project,sln-file,Visual Studio,Iis,Visual Studio 2017,Web Site Project,Sln File,我正在尝试创建一个模板解决方案(.sln)文件,因为我需要创建大量的解决方案文件来调试网站。我希望能够在解决方案文件中指定以下选项: 在运行启动页面之前,先构建页面而不是网站 不要将网站作为解决方案()的一部分进行构建 将特定页面设置为开始操作() 打开解决方案后,我可以在项目的属性页中指定这些,但我希望自动执行此操作。在项目前部分,我必须选择哪些选项?这就是我的解决方案的网站项目部分目前的样子: Project("{E24C65DC-7377-472B-9ABA-BC803B73

我正在尝试创建一个模板解决方案(.sln)文件,因为我需要创建大量的解决方案文件来调试网站。我希望能够在解决方案文件中指定以下选项:

  • 在运行启动页面之前,先构建页面而不是网站
  • 不要将网站作为解决方案()的一部分进行构建
  • 将特定页面设置为开始操作()
打开解决方案后,我可以在项目的属性页中指定这些,但我希望自动执行此操作。在项目前部分,我必须选择哪些选项?这就是我的解决方案的网站项目部分目前的样子:

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中修改网站项目的属性页相同的结果