Convert .Net Core to .Net Framework

后端 未结 8 1472
小蘑菇
小蘑菇 2020-12-08 06:18

I have a .Net Core project web project, and for various reasons want to convert it to a .Net Framework project.

Is there an easy way to do this, or do I have to star

8条回答
  •  情深已故
    2020-12-08 06:49

    This worked for me in VS2017:

    Start with .net core web project template.

    Edit *.csproj so it looks like this:

    
    
      
        net472
      
    
      
        
        
        
        
        
        
        
        
      
    
    
    

    Save and close.

    Try running project.

    The PackReferences is just the NuGet files, and you can add them through the GUI if the versions are different from mine above.

提交回复
热议问题