locked
MSBuild for .Net Core 3.0 Preview RRS feed

  • Question

  • Hi ,

    I am not able to generate a SonarQube report for .NET Core 3.0 preview, it is throwing errors. I have installed latest MSBuild from "Visual Studio Build Tools". Can anyone help me in this?

    Thanks in advance

    Srini

    Tuesday, May 28, 2019 4:12 AM

Answers

  • Hi Sri, 

    According to your error message, it seems the .net core 3.0 is not installed in your machine.

    Please open Control Panel=>Programs=>Programs and Features to check if you have .net core 3.0 installed:

    If it doesn't exist, please download and install the .net core 3.0 SDK from this link. (Choose X64 if your OS is X64 platform)

    After that please check if this issue is resolved or not. Any feedback would be expected!

    Best Regards

    Lance


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, June 3, 2019 9:13 AM

All replies

  • I got this error:

     The current .NET SDK does not support targeting .NET Core 3.0.  Either target .NET Core 2.2 or l
    ower, or use a version of the .NET SDK that supports .NET Core 3.0.

    Do we have any alternative way to generate SonarQube report for .NET core 3.0?

    Tuesday, May 28, 2019 6:24 AM
  • Hi Sri,

    Welcome to MSDN forum.

    Not familiar with SonarQube, but according to the error message, it looks like a similar issue with this one. Please share some details about your msbuild version, open Developer Command Prompt for VS2019 and type something like msbuild version to check:

    And what's the result if you use msbuild.exe to build the .net core3.0 preview project without SonarQube? Does it succeed or what's the error message if it fails?

    Looking forward to your reply!

    Best Regards

    Lance


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, May 28, 2019 6:38 AM
  • what dotnet version did you use? 

     dotnet --version


    Tuesday, May 28, 2019 12:59 PM
  • Hi Lance,

    I got this information:

    Thanks

    Srini

    Wednesday, May 29, 2019 6:47 AM
  • Wednesday, May 29, 2019 6:48 AM
  • Hi Sri,

    What's the result if you type command like : msbuild xxx.csproj in the Developer Command Prompt for VS2019? Can the build successfully?(In a situation where don't use SonarQube)

    Best Regards

    Lance


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, May 29, 2019 7:09 AM
  • Friday, May 31, 2019 2:39 PM
  • Hi Sri, 

    According to your error message, it seems the .net core 3.0 is not installed in your machine.

    Please open Control Panel=>Programs=>Programs and Features to check if you have .net core 3.0 installed:

    If it doesn't exist, please download and install the .net core 3.0 SDK from this link. (Choose X64 if your OS is X64 platform)

    After that please check if this issue is resolved or not. Any feedback would be expected!

    Best Regards

    Lance


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, June 3, 2019 9:13 AM