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
0
votes
1 answer

Cygwin 1.7.x fails to translate windows path to POSIX path

Year or so hence, I modified a project of mine to include subversion revision in installer file name. I installed MSBuild.Community.Tasks.Targets and modified csproj file so that it contained:
Vladimir Kocjancic
  • 1,814
  • 3
  • 22
  • 34
0
votes
2 answers

Pass Output items to separate target with MSBuild

I am creating a buildscript, where I'm outputting the TargetOutputs of an MSBuild, then wanting to call FXCop in a separate target, and using those outputs in the TargetAssemblies.
mickyjtwin
  • 4,960
  • 13
  • 58
  • 77
0
votes
1 answer

Email MSBuild errors - only when there are errors

msbuild MyProject.proj /fl /flp:v=detailed;logfile=mylog.txt msbuild MyProject.proj /t:ErrorEmail I have implemented this, and it works when there are errors. But it's also sending an email when there are no errors. How can I set up a…
NealWalters
  • 17,197
  • 42
  • 141
  • 251
0
votes
1 answer

how to do looping in msbuild to increment variable value?

i want to increment value N where n E {1...5}.how can increment value of N using msbuild.because i want to do same operation 5 times. so can i do looping in ms build ?please help me to solve this problem
Nithin
  • 921
  • 3
  • 10
  • 17
0
votes
0 answers

Is there a way to prevent visual studio to remove a file or write ItemGroup with remove action?

I'm working on a project where I generate C# classes in a pre-build step using XSLT and XML to generate those. Those generated classes are included in one file, let's name it "MyClasses.cs" file. The problem now is, if a developer removes the file…
0
votes
2 answers

MS Build Community Tasks - SVNCHECKOUT: can't find svn.exe even though it is in PATH

Note: this question applies to using the MSBUILDCOMMUNITYTASKS add-in for MSBUILD. Specificly the functionality of SVNCHECKOUT and its inablity to find the svn.exe file even when it is located in a directory included in the PATH environment…
TechSavvySam
  • 1,382
  • 16
  • 28
0
votes
1 answer

how to add stop msbuild from building the project visual studio build option

I want to stop msbuild default "build" target to stop building my code instead, i want to define my custom target which will build my application. how to achieve this? Thanks,
0
votes
1 answer

MSBuild: Modify Solution File using FileUpdate Task or Similar Task

I would like to be able to delete a project reference in a solution file via MSBuild. I am assuming I can do this using the FileUpdate task; however, I am not sure how you turn on the multiline regex feature. Essentially, I need to delete a…
Mike Veigel
  • 3,795
  • 2
  • 20
  • 28
0
votes
1 answer

Invalid access code error in MSBuild script

I'm developing a MSBuild project and am getting an odd error when I try to access the Visual SourceSafe from the script (the script is based on other successful scripts we are using, and is using the VssLabel task from MSBuild.Community.Tasks). The…
Cyberherbalist
  • 12,061
  • 17
  • 83
  • 121
0
votes
1 answer

how to execute a batch file on a remote machine using MSBuild?

I have a service running in a remote machine and have written two batch files to stop and start the service respectively. I have a MSBuild file that should call the batch file to stop the service, copy all the dlls to the remote machine and then…
RISHABH
  • 65
  • 5
0
votes
1 answer

how to get latest this version of MSBuild

iam getting below error while building using ms build using jenkins but i am getting the below error ... please help me with this 16:41:38 Project "c:\Jenkins\workspace\DeployMetaWrapper\Launcher\MetaWrapper\MetaWrapper.sln" (1) is building…
0
votes
1 answer

MSBuildCommunityTasks folder missing

New Admin of a asp.net C# web solution When I go to run msbuild against the project I get an error: error MSB4226: The imported project "C:\ Program Files (x86)\Microsoft Visual…
Joshua Boyd
  • 315
  • 1
  • 3
  • 10
0
votes
1 answer

MSBuildCommunityTasks FileUpdate $, (, and ) in ReplacementText

I am attempting to fix a problem with the SQLite makefile in an MSBuild project using the MSBuildCommunityTasks FileUpdate task. I need to replace the exact string "$(LTLIBOPTS) $(LTLIBPATHS)" with the exact string "$(LTLIBOPTS) $(LTLIBPATHS)…
Benilda Key
  • 2,836
  • 1
  • 22
  • 34
0
votes
1 answer

working with paths in msbuild

I'm trying to setup a virtual directory using msbuild and the msbuild community tasks but cannot find a way how to specify a relative path which is outside the $(MSBuildStartupDirectory). My project is structured like this: c:\proj\ src\ …
M4N
  • 94,805
  • 45
  • 217
  • 260