Questions tagged [msbuild-propertygroup]

Inside a Microsoft Build project, PropertyGroup contains a set of user-defined Item elements.

Inside a Microsoft Build project, PropertyGroup contains a set of user-defined Item elements.

More information:

56 questions
1
vote
2 answers

Nuget/Dotnet package manager - how can I retrieve $()

I have tried to read in Microsoft documentations as well in Nuget and Dotnet and was unable to understand the corresponding behavior. When working on a C# project along with .csproj I have encountered the following, Here is an example of what I want…
Daniel Eitan
  • 45
  • 1
  • 7
1
vote
2 answers

How to reevaluate MSBuild property

I can create MSBuild property, which contain unexpanded property reference. Here is example of it: Text file property.txt contains single line $(SomeProperty) It can be processed with msbuild script like this:
Nick
  • 13
  • 3
1
vote
1 answer

Assembly name from MSBUILD

I am developing an app that reads a MSBUILD file ( *.csproj ) to pull out various bits of information. A previous question on here revealed that I can get the resource files being used in the following manner Project project = new…
BENBUN Coder
  • 4,801
  • 7
  • 52
  • 89
1
vote
0 answers

Merge Property and ItemGroup that are unrelated into a single Property

I have a Property and an ItemGroup and I need to merge them into a single Property with a 1 to 1 relationship: SvrA,SvrB,SvrC <--Get full folder paths-->
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
3 answers

Scope and order of evaluation of Items in MsBuild

I wonder why in the following code, MsBuild refuses to set the Suffix Metadata. It does work with a CreateItem task instead of the ItemGroup Declaration (because CreateItem is computed at build time) but I can't do this here because this code is in…
Benjamin Baumann
  • 4,035
  • 2
  • 25
  • 35
1
vote
0 answers
1
vote
2 answers

Conditional properties for include paths break IntelliSense editing?

I have a build where some include and library paths must differ based on whether the build is 32-bit or 64-bit, and must be parameterised for easy editing by the user. I'm using property sheets to deal with that requirement. After learning of…
1
vote
1 answer

FTP Credentials for MSBuild.ExtensionPack.Communication.Ftp

In my AfterBuild script I use the following method to upload the files to the deployment…
1
vote
1 answer

Using MSBuildExtensionPack from a specific location (DLL reference)

I am trying to use MSBuildExtensionPack and read that I have to import the project by using: $(MSBuildProjectDirectory)..\MSBuild.ExtensionPack.tasks $(MSBuildProjectDirectory)....\Common\MSBuild.ExtensionPack.tasks It should not be necessary for…
1
vote
1 answer

how to set property value based on item and use that property as input of property function?

I am trying to set a property value based on Item But property doesn't seem to notice Item For example, my code is like %(temp.Identity)
in His Steps
  • 3,075
  • 6
  • 30
  • 38
1
vote
1 answer

MSBuild + Scope of property

I am defining a property in the .csproj file {3099AE33-98E7-4018-B0C3-4C3A37A6D56E} Exe