msbuild

How to automate Visual Studio's Code Metrics feature

不羁岁月 提交于 2019-12-31 21:34:30
问题 I want to automate the process of gathering code metrics on a .NET solution. Is there any way of getting msbuild to run the Code Metrics feature included in VS2008 Development Edition? I may end up using SourceMonitor, but I would like to know if there is a way to use the VS code metrics engine from the command line. 回答1: Finally, Microsoft have provided us with a way to automate the Visual Studio code metrics feature using a new "power tool". 回答2: This is how my company has automated FxCop

Where is MSBuild.exe installed in Windows when installed using BuildTools_Full.exe?

╄→гoц情女王★ 提交于 2019-12-31 20:32:07
问题 I'm trying to set up a build server for .NET, but can't figure out where MSBuild.exe is installed. I'm trying to install MSBuild using the Microsoft Build Tools 2013: https://www.microsoft.com/en-us/download/details.aspx?id=40760 回答1: MSBuild in the previous versions of .NET Framework was installed with it but, they decided to install it with Visual Studio or with the package BuildTools_Full.exe. The path to MSBuild when installed with the .NET framework: C:\Windows\Microsoft.NET\Framework[64

Jenkins not restoring NuGet packages with new MSBuild restore target

拜拜、爱过 提交于 2019-12-31 17:54:11
问题 We have a .net full framework WPF application that we've moved from .net 4.6.2 to 4.7.1 along with changing to PackageReference in the csproj file instead of packages.config. Building on the development machines appears to be fine and packages are downloaded and restored, but when we build on our Windows Server 2012 build server with Jenkins , the nuget packages don't seem to be restored correctly. We're using MSBuild v15.5 with the latest "msbuild /restore" command to restore packages at

.NET projects build automation with NAnt/MSBuild + SVN

若如初见. 提交于 2019-12-31 17:22:34
问题 for quite a while now, I've been trying to figure out how to setup an automated build process at our shop. I've read many posts and guides on this matter and none of them really fits my specifics needs. My SVN repository is laid out as follows \projects \projectA (a product) \tags \1.0.0.1 \1.0.0.2 ... \trunk \src \proj1 (a VS C# project) \proj2 \documentation Then I have a network share, with a folder for each project (product), which in turn contains the binaries, written documentation and

MSBUILD Error MSB4025 in TeamCity build step for Visual Studio

此生再无相见时 提交于 2019-12-31 12:59:06
问题 When I run my TeamCity build with the only build step being of runner type Visual Studio (sln), I get the following error: C:\TeamCity\buildAgent\work\4978ec6ee0ade5b4\Test\Code\Test.sln(2, 1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 2, position 1. This is on a dedicated CI server running TeamCity Professional 8.1.1 (build 29939). There are several other successfully-running builds on this server. The odd bit is that the same build runs

MSDeploy doesn't deploy to remote server using MSBuild and Visual Studio 2010

拟墨画扇 提交于 2019-12-31 12:23:29
问题 I'm currently running Visual Studio Team System 2010 RC and I'm trying to get the Build Service setup to build my solution and deploy 3 web applications in it. I've created a custom build configuration called Integration and I've setup the "IIS Web site/application name to use on the destination server" on the Package/Publish tab of the Properties for each of the web applications. In my Build Definition I've set the following arguments: /p:DeployOnBuild=True /p:DeployTarget=MSDeployPublish /p

Recommendations for Continuous integration for Mercurial/Kiln + MSBuild + MSTest

倖福魔咒の 提交于 2019-12-31 12:19:12
问题 We have our source code stored in Kiln/Mercurial repositories; we use MSBuild to build our product and we have Unit Tests that utilize MSTest (Visual Studio Unit Tests). What solutions exist to implement a continuous integration machine (i.e. Build machine). The requirements for this are: A build should be kicked of when necessary (i.e. code has changed in the Repositories we care about) Before the actual build, the latest version of the source code must be acquired from the repository we are

Web Deploy - Using Relative Paths for local file system deployment

馋奶兔 提交于 2019-12-31 11:43:47
问题 I am wanting to use Web Deploy to run a custom deployment setup. As I am wanting to have this work fine when running on many different environments (team members local machines, 4 different builds servers) I want to deploy to a local path that is relative. What I am wanting to do is: Deploy to a local relative path Have the after build step do magical things... However when i enter the local file path to deploy to as: "..\Deploy_Production" web deploy complains with this: 2>Connecting to ..

VisualStudio.com can't load the temporary UWP certificate during builds

╄→尐↘猪︶ㄣ 提交于 2019-12-31 11:03:16
问题 I set up my Visual Studio Team Service account to clone my private GitHub repo and build the Windows UWP application anytime I queue a build. The cloning works without any issues; the compilation of every project (6) works except one. The Windows UWP app project. I receive the following warnings while the build server compiles the app: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1778,5): Warning APPX0104: Certificate file 'myapp

How can I prevent external MSBuild files from being cached (by Visual Studio) during a project build?

走远了吗. 提交于 2019-12-31 10:42:00
问题 I have a project in my solution which started life as a C# library project. It's got nothing of any interest in it in terms of code, it is merely used as a dependency in the other projects in my solution in order to ensure that it is built first. One of the side-effects of building this project is that a shared AssemblyInfo.cs is created which contains the version number in use by the other projects. I have done this by adding the following to the .csproj file: <ItemGroup> <None Include=