Convert a Visual Studio project to a dot Net core project csproj to Xproj

Source: Internet
Author: User
Tags dot net dotnet

  1. Delete the csproj file.
  2. Rename the Package.config to Project.json.
  3. Transform the file to convert the XML to JSON format.
  4. <?XML version= "1.0" encoding= "Utf-8"?><Packages>  < PackageID= "Newtonsoft.json"version= "8.0.3"targetframework= "net451" />  < PackageID= "Somecoolpackage"version= "3.0.1"targetframework= "net451" /></Packages>

    After conversion

    {  "dependencies": {    "somecoolpackage": "3.0.1",    "Newtonsoft.json": "8.0.3"   },  " Frameworks ": {    " net45 ": {    }  },  " runtimes ": {    " win ": {}  }}
  5. Perform dotnet restore
  6. Perform dotnet Build
  7. You may encounter an error and try to add a reference to Frmework
    {  "dependencies": {    "somecoolpackage": "3.0.1",    "Newtonsoft.json": "8.0.3"   },  " Frameworks "" Net45 ": {      " frameworkassemblies ": {        " System.Runtime.Serialization ":" 4.0.0.0 ",      }    }  },  " runtimes ": {    " Win ": {}   }}
  8. Open Visual Studio and add an existing project.

Convert a Visual Studio project to a dot Net core project csproj to Xproj

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.