Questions tagged [msbuild-4.0]

Third version of the MSBuild build tool (after 2.0 and 3.5), released as part of the .Net Framework 4.0. It is used by default by Microsoft Visual Studio 2010.

Third version of the MSBuild build tool adds support for property functions, new build extension mechanism, inline tasks, project multitargetting and a new API model.

315 questions
0
votes
1 answer

MSBuild 4.0 property functions cannot access properties inside of them

Is it a limitation of MSBuild 4.0 property functions that I cannot access a property from inside of one? Here is an example that works just fine: $(TargetConnectionString.Substring( 0 +…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
0
votes
1 answer

Accessing semicolon delimited items in a MSBuild Variable

I have a variable that I am working with called $(TargetConnectionString) It is set to SomeValue=Things;Data Source=MySQLServer;Integrated Security=True;Pooling=False Is there a cool MSBuild way to get a reference to just the MySQLServer part of…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
0
votes
0 answers

In .nuget BeforeTargets ="BeforeBuild" should call only once for the Solution even though it has 40 projects?

I am looking for a way to run my defined Target only once per build process and not for every project that gets build. I have defined the following in nuget.targets file <_tenant…
0
votes
3 answers

MSBuild Compile target to generate a dll for a class?

I have a VB Class and when I run : msbuild /t:Compile It generates the Exe for the application that contains the compiled code for the class as well. I want to have a separate dll for my VB class in myfolder Folder. What extra arguments do I have…
Yugal Jindle
  • 44,057
  • 43
  • 129
  • 197
0
votes
0 answers

How to publish MVC 4 website as part of csproj file?

I have website built on MVC4 in visual studio 2019 and for publish profile I usually used right click and select publish site. which is working great but i want it should be part of my csproj. As when as i build my web.sln it should create a publish…
0
votes
1 answer

Why won't the copy task item work in my msbuild script?

I have the following code in my msbuild script:
Korbin
  • 1,788
  • 2
  • 18
  • 29
0
votes
2 answers

Msbuild create apppool in specific framework version

In my Msbuild project script, I want to set the apppool framework version as 4.0 while creating. What parameter should I add to the node: ??
techrich
  • 135
  • 1
  • 4
0
votes
0 answers

Executing MSTest using MSBuild

I am using MSbuild to build and deploy .NET 4.6.2 project. I have Main.proj file with the following configuration
LP13
  • 30,567
  • 53
  • 217
  • 400
0
votes
1 answer

TFS 2010 MSBuild: After dll in Binaries folder

I'm currently using the AfterBuild target to extend my build script but at that point the dll for the project hasn't been placed in the Binaries folder. What target will run after the dll has been placed in the Binaries folder?
chief7
  • 14,263
  • 14
  • 47
  • 80
0
votes
1 answer

unable to find the temporary location for signtool. exiting

I am try to digitally sign .dll, .exe and .msi files using signUserFiles.exe, I have configured signing steps into Cruise control tool and when I try to build our project (abc.proj file) using cruise control tool then I am getting below error EXEC…
0
votes
0 answers

Add Build Numbers via VS2010 when in Release Mode

I am trying to add a build release number to a component in my software solution and I have tried incrementing the number in the Assembly Info.cs class but this is not working. To add a bit of context our build server is not available due to the…
Andy5
  • 2,319
  • 11
  • 45
  • 91
0
votes
1 answer

How do I use the exact msbuild item "unexpanded wildcard expression" value

I have the following MSBuild .proj file content:
0
votes
1 answer

How to add C# project reference to cruise control.net

I am new to cruise control. I have added the project using ccnet.config file and it shows and gives a compilation error. I found that the project is dependent on a reference project that is not being compiled by cruise control. how to fix this. lets…
Naveen Chakravarthy
  • 819
  • 2
  • 15
  • 30
0
votes
1 answer

Change "Referencee" $(PackageVersion) During DNCore Pack

I am trying to use MSBuild to automatically update package versions based on the branch name. This works for the project itself, but referenced projects (that use the same MSBuild targets) use the default version - meaning that my targets are not…
Jonathan Dickinson
  • 9,050
  • 1
  • 37
  • 60
0
votes
1 answer

Why are my CruiseControl.Net fields not available in my build script?

I have a .Net 4.0 project that I wish to build in CruiseControl.Net. It is now set up, so it builds a publish-build and works perfectly except for the version number, where I can't reference CCNetLabel, that I wish to use for the last digit of the…
Anders Juul
  • 2,407
  • 3
  • 34
  • 56