Getting error while running SonarScannerMSBuild on Xamarin projects





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















1) When I Try to use Rebuild option



MANOJs-MacBook-Air:UI_Testing2 manojdeshpande$ mono /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/MSBuild.SonarQube.Runner.exe /t:Rebuild



WARNING: ------------------------------------------------------------------------



This executable is deprecated and may be removed in next major version of the SonarScanner for MSBuild. Please use 'SonarScanner.MSBuild.exe' instead.





SonarScanner for MSBuild 4.5



Using the .NET Framework version of the Scanner for MSBuild



Default properties file was found at /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



Loading analysis properties from /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



WARNING: Please specify the command 'begin' or 'end' to indicate whether pre- or post-processing is required. These parameters will become mandatory in a later release.



Pre-processing started.



Preparing working directories...



05:23:39.463 05:23:39.454 Unrecognized command line argument: /t:Rebuild



05:23:39.464 05:23:39.462 A required argument is missing: /key:[SonarQube project key]



05:23:39.464 Expecting at least the following command line argument:




  • SonarQube project key


When connecting to a SonarQube server earlier than version 6.1, the following command line arguments are also required:




  • SonarQube project name


  • SonarQube project version



The full path to a settings file can also be supplied. If it is not supplied, the exe will attempt to locate a default settings file in the same directory as the SonarQube Scanner for MSBuild.



Use '/?' or '/h' to see the help message.



05:23:39.464 Pre-processing failed. Exit code: 1



2) I get some other error with authentication problems. Any work around this.



MANOJs-MacBook-Air:UI_Testing2 manojdeshpande$ mono /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarScanner.MSBuild.exe begin /k:"Xamarin" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="token1"



SonarScanner for MSBuild 4.5



Using the .NET Framework version of the Scanner for MSBuild



Default properties file was found at /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



Loading analysis properties from /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



Pre-processing started.



Preparing working directories...



05:18:52.798 Updating build integration targets...



05:18:52.833 Fetching analysis configuration settings...



05:18:52.94 Failed to request and parse 'http://localhost:9000/api/settings/values?component=Xamarin': The remote server returned an error: (401) .



05:18:52.94 Could not authorize while connecting to the SonarQube server. Check your credentials and try again.



05:18:52.941 Pre-processing failed. Exit code: 1










share|improve this question























  • Is this a new setup / first project? What SonarQube version / plugins do you use? What do you see if you try to open localhost:9000?

    – Jeroen Heier
    Jan 4 at 19:33











  • Hello sir....yes it is first project, I am using "sonar-scanner-msbuild-4.4.2.1543-net46" version for sonar-scanner for MSBuild and using Sonarqube as docker service in localhost. I am seeing 0 errors, 0 vulnerabilities and 0 warnings in localhost:9000. Thanks

    – Manoj Deshpande
    Jan 6 at 17:28


















0















1) When I Try to use Rebuild option



MANOJs-MacBook-Air:UI_Testing2 manojdeshpande$ mono /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/MSBuild.SonarQube.Runner.exe /t:Rebuild



WARNING: ------------------------------------------------------------------------



This executable is deprecated and may be removed in next major version of the SonarScanner for MSBuild. Please use 'SonarScanner.MSBuild.exe' instead.





SonarScanner for MSBuild 4.5



Using the .NET Framework version of the Scanner for MSBuild



Default properties file was found at /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



Loading analysis properties from /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



WARNING: Please specify the command 'begin' or 'end' to indicate whether pre- or post-processing is required. These parameters will become mandatory in a later release.



Pre-processing started.



Preparing working directories...



05:23:39.463 05:23:39.454 Unrecognized command line argument: /t:Rebuild



05:23:39.464 05:23:39.462 A required argument is missing: /key:[SonarQube project key]



05:23:39.464 Expecting at least the following command line argument:




  • SonarQube project key


When connecting to a SonarQube server earlier than version 6.1, the following command line arguments are also required:




  • SonarQube project name


  • SonarQube project version



The full path to a settings file can also be supplied. If it is not supplied, the exe will attempt to locate a default settings file in the same directory as the SonarQube Scanner for MSBuild.



Use '/?' or '/h' to see the help message.



05:23:39.464 Pre-processing failed. Exit code: 1



2) I get some other error with authentication problems. Any work around this.



MANOJs-MacBook-Air:UI_Testing2 manojdeshpande$ mono /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarScanner.MSBuild.exe begin /k:"Xamarin" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="token1"



SonarScanner for MSBuild 4.5



Using the .NET Framework version of the Scanner for MSBuild



Default properties file was found at /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



Loading analysis properties from /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



Pre-processing started.



Preparing working directories...



05:18:52.798 Updating build integration targets...



05:18:52.833 Fetching analysis configuration settings...



05:18:52.94 Failed to request and parse 'http://localhost:9000/api/settings/values?component=Xamarin': The remote server returned an error: (401) .



05:18:52.94 Could not authorize while connecting to the SonarQube server. Check your credentials and try again.



05:18:52.941 Pre-processing failed. Exit code: 1










share|improve this question























  • Is this a new setup / first project? What SonarQube version / plugins do you use? What do you see if you try to open localhost:9000?

    – Jeroen Heier
    Jan 4 at 19:33











  • Hello sir....yes it is first project, I am using "sonar-scanner-msbuild-4.4.2.1543-net46" version for sonar-scanner for MSBuild and using Sonarqube as docker service in localhost. I am seeing 0 errors, 0 vulnerabilities and 0 warnings in localhost:9000. Thanks

    – Manoj Deshpande
    Jan 6 at 17:28














0












0








0








1) When I Try to use Rebuild option



MANOJs-MacBook-Air:UI_Testing2 manojdeshpande$ mono /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/MSBuild.SonarQube.Runner.exe /t:Rebuild



WARNING: ------------------------------------------------------------------------



This executable is deprecated and may be removed in next major version of the SonarScanner for MSBuild. Please use 'SonarScanner.MSBuild.exe' instead.





SonarScanner for MSBuild 4.5



Using the .NET Framework version of the Scanner for MSBuild



Default properties file was found at /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



Loading analysis properties from /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



WARNING: Please specify the command 'begin' or 'end' to indicate whether pre- or post-processing is required. These parameters will become mandatory in a later release.



Pre-processing started.



Preparing working directories...



05:23:39.463 05:23:39.454 Unrecognized command line argument: /t:Rebuild



05:23:39.464 05:23:39.462 A required argument is missing: /key:[SonarQube project key]



05:23:39.464 Expecting at least the following command line argument:




  • SonarQube project key


When connecting to a SonarQube server earlier than version 6.1, the following command line arguments are also required:




  • SonarQube project name


  • SonarQube project version



The full path to a settings file can also be supplied. If it is not supplied, the exe will attempt to locate a default settings file in the same directory as the SonarQube Scanner for MSBuild.



Use '/?' or '/h' to see the help message.



05:23:39.464 Pre-processing failed. Exit code: 1



2) I get some other error with authentication problems. Any work around this.



MANOJs-MacBook-Air:UI_Testing2 manojdeshpande$ mono /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarScanner.MSBuild.exe begin /k:"Xamarin" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="token1"



SonarScanner for MSBuild 4.5



Using the .NET Framework version of the Scanner for MSBuild



Default properties file was found at /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



Loading analysis properties from /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



Pre-processing started.



Preparing working directories...



05:18:52.798 Updating build integration targets...



05:18:52.833 Fetching analysis configuration settings...



05:18:52.94 Failed to request and parse 'http://localhost:9000/api/settings/values?component=Xamarin': The remote server returned an error: (401) .



05:18:52.94 Could not authorize while connecting to the SonarQube server. Check your credentials and try again.



05:18:52.941 Pre-processing failed. Exit code: 1










share|improve this question














1) When I Try to use Rebuild option



MANOJs-MacBook-Air:UI_Testing2 manojdeshpande$ mono /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/MSBuild.SonarQube.Runner.exe /t:Rebuild



WARNING: ------------------------------------------------------------------------



This executable is deprecated and may be removed in next major version of the SonarScanner for MSBuild. Please use 'SonarScanner.MSBuild.exe' instead.





SonarScanner for MSBuild 4.5



Using the .NET Framework version of the Scanner for MSBuild



Default properties file was found at /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



Loading analysis properties from /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



WARNING: Please specify the command 'begin' or 'end' to indicate whether pre- or post-processing is required. These parameters will become mandatory in a later release.



Pre-processing started.



Preparing working directories...



05:23:39.463 05:23:39.454 Unrecognized command line argument: /t:Rebuild



05:23:39.464 05:23:39.462 A required argument is missing: /key:[SonarQube project key]



05:23:39.464 Expecting at least the following command line argument:




  • SonarQube project key


When connecting to a SonarQube server earlier than version 6.1, the following command line arguments are also required:




  • SonarQube project name


  • SonarQube project version



The full path to a settings file can also be supplied. If it is not supplied, the exe will attempt to locate a default settings file in the same directory as the SonarQube Scanner for MSBuild.



Use '/?' or '/h' to see the help message.



05:23:39.464 Pre-processing failed. Exit code: 1



2) I get some other error with authentication problems. Any work around this.



MANOJs-MacBook-Air:UI_Testing2 manojdeshpande$ mono /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarScanner.MSBuild.exe begin /k:"Xamarin" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="token1"



SonarScanner for MSBuild 4.5



Using the .NET Framework version of the Scanner for MSBuild



Default properties file was found at /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



Loading analysis properties from /Users/manojdeshpande/Downloads/sonar-scanner-msbuild-4.5.0.1761-net46/SonarQube.Analysis.xml



Pre-processing started.



Preparing working directories...



05:18:52.798 Updating build integration targets...



05:18:52.833 Fetching analysis configuration settings...



05:18:52.94 Failed to request and parse 'http://localhost:9000/api/settings/values?component=Xamarin': The remote server returned an error: (401) .



05:18:52.94 Could not authorize while connecting to the SonarQube server. Check your credentials and try again.



05:18:52.941 Pre-processing failed. Exit code: 1







c# xamarin.forms sonarqube sonarscanner






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 3 at 5:54









Manoj DeshpandeManoj Deshpande

118




118













  • Is this a new setup / first project? What SonarQube version / plugins do you use? What do you see if you try to open localhost:9000?

    – Jeroen Heier
    Jan 4 at 19:33











  • Hello sir....yes it is first project, I am using "sonar-scanner-msbuild-4.4.2.1543-net46" version for sonar-scanner for MSBuild and using Sonarqube as docker service in localhost. I am seeing 0 errors, 0 vulnerabilities and 0 warnings in localhost:9000. Thanks

    – Manoj Deshpande
    Jan 6 at 17:28



















  • Is this a new setup / first project? What SonarQube version / plugins do you use? What do you see if you try to open localhost:9000?

    – Jeroen Heier
    Jan 4 at 19:33











  • Hello sir....yes it is first project, I am using "sonar-scanner-msbuild-4.4.2.1543-net46" version for sonar-scanner for MSBuild and using Sonarqube as docker service in localhost. I am seeing 0 errors, 0 vulnerabilities and 0 warnings in localhost:9000. Thanks

    – Manoj Deshpande
    Jan 6 at 17:28

















Is this a new setup / first project? What SonarQube version / plugins do you use? What do you see if you try to open localhost:9000?

– Jeroen Heier
Jan 4 at 19:33





Is this a new setup / first project? What SonarQube version / plugins do you use? What do you see if you try to open localhost:9000?

– Jeroen Heier
Jan 4 at 19:33













Hello sir....yes it is first project, I am using "sonar-scanner-msbuild-4.4.2.1543-net46" version for sonar-scanner for MSBuild and using Sonarqube as docker service in localhost. I am seeing 0 errors, 0 vulnerabilities and 0 warnings in localhost:9000. Thanks

– Manoj Deshpande
Jan 6 at 17:28





Hello sir....yes it is first project, I am using "sonar-scanner-msbuild-4.4.2.1543-net46" version for sonar-scanner for MSBuild and using Sonarqube as docker service in localhost. I am seeing 0 errors, 0 vulnerabilities and 0 warnings in localhost:9000. Thanks

– Manoj Deshpande
Jan 6 at 17:28












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54017009%2fgetting-error-while-running-sonarscannermsbuild-on-xamarin-projects%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54017009%2fgetting-error-while-running-sonarscannermsbuild-on-xamarin-projects%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

ts Property 'filter' does not exist on type '{}'

Notepad++ export/extract a list of installed plugins