Can the new csproj file structure be used with a ASP.NET Framework project?

前端 未结 2 853
忘掉有多难
忘掉有多难 2020-12-13 02:28

The new .csproj format includes some significant improvements over the classic files, including tight integration with NuGet package management and significantly less-verbos

2条回答
  •  孤城傲影
    2020-12-13 02:48

    I am following this github issue regarding this, and the latest comments posted add the last missing pieces. Basically, with a .csproj file like this:

    
      
      
        Library
        bin\
        net48
        false
        true
      
      
        
        
      
      
      
        15.0
        $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
      
      
      
      
    
    

    everything works!

    • The normal run and debug experience with visual studio starting iisexpress with the right applicationhost.config. If you fill out the sslport in launchsettings, it even works with ssl.
    • The normal edit and debug razor experience without any red squiggles and with working intellisense/autocomplete.

    The only thing that still seems to be missing is right click deploy functionality... But as you can use msbuild /p:DeployOnBuild=True to deploy, I finally don't see anything missing anymore that stops me from upgrading.

提交回复
热议问题