msbuild

Error during SonarQube Scanner execution - Illegal argument exception

佐手、 提交于 2019-12-25 08:19:03
问题 I installed SonarQube 6.1 with MSBuild.SonarQube.Runner-2.2.0.24 to analyse a C# solution. When I run an analysis, I get the following error: WARN: SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project. ERROR: Error during SonarQube Scanner execution java.lang.IllegalArgumentException: Start pointer [line=90, lineOffset=89] should be before end pointer [line=90, lineOffset=89] at org.sonar.api.internal

Modify ServiceReferences.ClientConfig file using bat before deploying SilverLight solution

六月ゝ 毕业季﹏ 提交于 2019-12-25 08:17:32
问题 my team is developing a silverlight application and we are now switching our solution to https on our server but we would like to use http locally. So, in the XAP file that results when building the app there is a ServiceReferences.ClientConfig having the configuration for the web services that are referenced in the project. The issue is that I would like to have some configuration when I am running it locally and have some other configuration when I deploy it. We decided to alter the

Convert a PreBuildEvent to a Target with a Condition?

柔情痞子 提交于 2019-12-25 08:13:53
问题 I have a project called cryptdll.vcxproj . cryptdll depends on artifacts from two other projects in the solution. The other projects are cryptlib and cryptest . For those interested in the layout of elements in cryptdll , it is located at cryptdll. The dependencies are somewhat unusual and not easily expressed in the Visual Studio editor. They are unusual because policy requires Win32\Output\Debug\cryptest.exe always be used to perform a PostBuildEvent cryptdll . I found I could add the

ASP.NET Core Web API: Program does not contain a static 'Main' method suitable for an entry point

大兔子大兔子 提交于 2019-12-25 07:59:34
问题 I am working on an ASP.NET Core Web API that references other projects (csproj) within a large solution. The ASP.NET Core Web API builds in Visual Studio 2015 and using msbuild in a command prompt "on my machine" :-) msbuild SomeWebAPI.xproj Compilation succeeded. 33 Warning(s) 0 Error(s) Time elapsed 00:00:01.7740626 Done Building Project . . Build succeeded. Problem is it doesn't build on our build-server. Same msbuild-command, same msbuild-version, different result: msbuild SomeWebAPI

Incremental Build of Nuget Packages

爱⌒轻易说出口 提交于 2019-12-25 07:43:41
问题 I want to execute an msbuild project which uses batching to determine that one or more csproj projects have been freshly-built, and therefore require fresh nuget packaging. The script I've made so far seems like a reasonable start, but it the incremental-build mechanism isn't working. The MainBuild target executes every time, no matter what. Here is what I have: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="MainBuild" xmlns="http://schemas.microsoft.com

How do I get this command line script to work in TeamCity?

坚强是说给别人听的谎言 提交于 2019-12-25 07:29:09
问题 I finally got a msbuild to execute and do a publish through the command line. Now I'm wondering how do I do that via teamcity? When I run this command line it works! C:\TFS\project\myProject\APIproject>msbuild apiproject.csproj /p:DeployOnBuild=true /p:PublishProfile="Properties\PublishProfiles\DEV.pubxml" /p:VisualStudioVersio n=14.0 However, I don't see a good solution in TeamCity to run this script. 回答1: See the documentation: add an 'MsBuild' build step and populate the fields

Can an SSDT project build use multiple cores?

匆匆过客 提交于 2019-12-25 07:26:56
问题 I have a very large SSDT project in VS 2013 that takes about 30 mins to build. When building it's obvious that msbuild.exe is only using one core. Is there a way to get an SSDT project to utilise all cores on the server? 回答1: No. Normal things to try are: Disable treat t-SQL warnings as errors Split the project into multiple ones and use dacpac references on parts of it that don't change There is an option that changes how the models are generated from disk to memory, if your hitting the 2gb

How to build Visual Studio Setup projects (.vdproj) with TFS 2010 Build ?

对着背影说爱祢 提交于 2019-12-25 07:26:19
问题 We have a solution that contains VS (2013) setup projects. Apparently MSBuild does not support building such projects so we have to run the build manually through dev machines. I saw the following link that shows a workaround: http://colinsalmcorner.com/post/building-vs-2015-setup-projects-in-team-build#comments BUT we would like NOT to install VS on our build machine. Is there a way to workaround this problem? What is the best way to build setup projects in a build machine? Thanks 回答1: Team

Building a solution which contains a windows service and a windows forms project

怎甘沉沦 提交于 2019-12-25 05:38:14
问题 I have a solution which contains a windows service and a windows forms project. Is it possible to build the solution and have the output from both project in one folder ? The ouput folder should contain the windows service exe and also the win forms exe files. 回答1: Use copy in both projects build events. Like this copy /Y $(ProjectDir)$(OutDir)output_file_you_want_to_copy C:\some_dest_dir 回答2: Give both projects the same OutputPath with a fully qualified path that includes $(OutDir). You'll

How do I get my build agent to build a solution with external project references?

ε祈祈猫儿з 提交于 2019-12-25 05:37:13
问题 Currently I am plagued with two TFS build issues: Issue one: I have a solution with a project that now references the dll product of another project in another solution. The build agent does not seem to include these dlls and the build fails. Issue two: I have a solution that references the a project in another solution. The build agent does not seem to include the externally referenced project and the build fails. I have looked at the "copy directory" build activity but have no idea where to