Questions tagged [msbuildcommunitytasks]

The MSBuild Community Tasks Project is an open source project for MSBuild tasks.

The MSBuild Community Tasks Project is an open source project for MSBuild tasks.

https://github.com/loresoft/msbuildtasks

145 questions
1
vote
1 answer

MSBuild Contrib XMLMassUpdate and NHibernate configuration

I'm attempting to build up an MSBuild file to deploy a set of several websites to multiple environments. At the moment, I've built the project and have it dumped into a directory. I'm using the variable $(AdminConsoleConfigFilePath) to refer to the…
1
vote
1 answer

What is the difference between publishing through Ms Build and Visual Studio Publish Wizard through the IDE?

I searched on the web and could not find a satisfying answer for this question below: I am currently working on ms build to publish my winform application based on the environment selected (Dev or Prod). I am using Ms Build Community Task and…
reggie
  • 13,313
  • 13
  • 41
  • 57
1
vote
1 answer

Changes required in Visual studio solution project for MSBuild

I have a .Net solution with two simple class library projects. Both projects contain a single method like hello world. Solution is getting build properly using visual studio as well as MSBuild.exe. Now when I make a reference of Project 1 into…
1
vote
1 answer

Unable to get correct MSBuildCommunityTasksPath when using MSBUILDTASKS from NuGet in a before.Solution.sln.targets script run on TFS build server

I have been using MSBUILDTASKS (installed from NuGet) successfully in project-level targets files, run on TFS build server, for a long time. Now I am trying to use it in solution-level Before and After targets file (see here). However, used this…
Laurence
  • 980
  • 12
  • 31
1
vote
1 answer

MSBuild: How to Future-Proof Import Project Path?

A similar question was asked a few years ago, but I'm wondering if anything has changed in the interim or if folks have new ideas how to do this. I've imported MSBuildTasks (MSBuild Community Tasks) as a Nuget package into a project within my…
1
vote
1 answer

MsBuild Copy output and remove part of path

I have an MsBuild project which builds various solutions and then copies the output of Web Deployment Projects into a destination folder with two sub folder as follows: The WDP output folders are copied over from the BuildFolder…
Redeemed1
  • 3,953
  • 8
  • 38
  • 63
1
vote
0 answers

Two steps build when your project contains XAML files, Visual Studio vs MSBuild

There is project with output type as class library, which contains WPF controls. AssemblyInfo.cs should be generated before compile, and for that purpose there is next target (using MSBuild.Community.Tasks) which I imported at the end of .csproj…
1
vote
0 answers

Selectively checkout directories using SVNCheckout in MSBuild

In my project I have many folders. I certainly know I want have changes in only around 2 directories. Also, I don't want to checkout the entire source to accomplish it. How can I implement this using MSbuild. source -- Core -- Helper --…
this-Me
  • 2,139
  • 6
  • 43
  • 70
1
vote
1 answer

Setting Assembly Info for InternalsVisibleTo with MSBuild Community Tasks

I'm using MSBuild Community Tasks to automatically update my assembly version numbers according to my Subversion repository tag. I have added the following to my project file: This gives me a new AssemblyInfo.cs file: unfortunately I need to add…
1
vote
1 answer

MSBuild : app.config is getting transformed for given environment but app.exe.config is not getting transformed

I am using MSBuild.exe to build our application. Along with App.Config, I have App.prod.config, app.qa.config, app.dev.config files. On the command line, I enter following C:\XXX\MyProject> C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
1
vote
3 answers

MSBuild Extension Pack Zip the folders and subfolders

I have to Zip my folders and subfolders Using MSbuild, I was looking at the MSBuild Extension pack, and tried this Release
Manoj Talreja
  • 793
  • 3
  • 11
  • 18
1
vote
3 answers

How to get the last part of $(MSBuildProjectDirectory)

I can't figure out how to get the last part of $(MSBuildProjectDirectory). For example, if the value was "c:\development\projects\project_branch" then I want just the last part "project_branch". How can I do this?
Sean
  • 11
  • 1
  • 2
1
vote
1 answer

VisualStudioVersion property requires v11 folder to contain SQLDB/DAC folder which is missing

I am building a deployment script that should use the version of files available on the host machine to run the contained tasks/targets. My local Machine(Windows 7 64-bit) has Visual Studio 10, 2013 and 2014 installed on it and so when I explore to…
1
vote
2 answers

MSBuild zip directories task without any external dependencies (no MSBuildCommunityTasks)

I have attempted to find a way to zip a build up using MSBuild without using MSBuildCommunityTasks. I did manage to find some code online but it seems to take all the files, even ones in directories and put it in one file (no directories).
KalPilp
  • 13
  • 3
1
vote
1 answer

Issue with MSBuild.Community.Tasks.Targets

I am trying to build with msbuild. The following lines are present in MSBuild.Community.Tasks.Target
cmm user
  • 2,426
  • 7
  • 34
  • 48