Questions tagged [itemgroup]

56 questions
3
votes
2 answers

Preserve directory structure when copying items from the None ItemGroup via MSBuild

In my cpp project file I have an item group defined as such:
user1570022
2
votes
0 answers

StyleCop nuget package including suppressions file based on project name

I am in the process of creating a nuget package for stylecop so that we can use it across all the microservices and other projects. I am looking to have multiple GlobalSuppressions files, and add them to projects based on the project name where I…
Srikanth
  • 147
  • 1
  • 2
  • 15
2
votes
2 answers

MSBuild item can't be used in MSBuild task, error MSB4012

I have the following MSBuild project file:
Dmitrii Lobanov
  • 4,897
  • 1
  • 33
  • 50
2
votes
1 answer

how to get extension name (without dot) in MSBuild

I have an ItemGroup, and I use its metadata as identifiers in my MSBuild project for batch processing. For example:
2
votes
1 answer

How to clear (and possibly include other) items from an ItemGroup?

In my build process, I'm always using a pattern, whereby somes tasks are designed to compute the list of items in an item group, and some other tasks create the physical corresponding items. This allows me to minimize my build times by performing…
Maxime Labelle
  • 3,609
  • 2
  • 27
  • 48
1
vote
1 answer

MSBuild: How to always include a file (Import Project)?

I have a file: CoreAssemblyInfo.cs that I want to show up in my projects under the properties folder... I realize that I can add the existing file as a link, but I was hoping to use MSBuild somehow to have all my "core" stuff. I tried doing the…
michael
  • 14,844
  • 28
  • 89
  • 177
1
vote
0 answers

NetSuite - Hide components of Item Group on Sales Order "Print PDF" forms

I have a client script deployed to NetSuite Sales Order record. This client script is responsible to add "Item Group" main line, then corresponding "Member Item" lines and finally "End of Group" line. Note: The functionality is: When a user adds an…
1
vote
1 answer

Bootstrap list-group-item display

I have a list of links displayed with Bootstraps list-group classes. I am trying to add a font-awesome icon to one of the links. I have the jquery code that will change the icon when it is clicked on. The problem is that if I add a span to the link…
user3052443
  • 758
  • 1
  • 7
  • 22
1
vote
1 answer

C# - MSBuild reference - Copy to CopyToOutputDirectory all items of

I'm trying to copy all files in a project to an output directory. Right now I've unloaded my process and in my "TestProject.csproj" I have these options for the item I'd like to copy:
okkappa
  • 31
  • 4
1
vote
1 answer

MSBuild, CreateItem to ItemGroup to binplace a target to multiple folders

Short-story: I have a list of with an attribute called true. I want to copy all of these files, to a list of folders, say defined by ... someFolder To that end, here's what I'm doing today:
gaganuprasad
  • 31
  • 1
  • 4
1
vote
1 answer

Add an Item Group to Sales Order in Netsuite using SuiteTalk and PHP

I am trying to add Sales Orders with items of type "Item Group" using SuiteTalk via the PHP Toolkit. When the item is of other types, e.g. "Inventory Item, Non-Inventory Item", the orders is added without problems. When the item is of type "Item…
1
vote
1 answer

Create an ItemGroup of strings in MSBuild

I want to create an "ItemGroup" of arbitrary strings / names in order to use MSBuild transforms, for example: First Second I then wish to pass a transform of these…
Justin
  • 84,773
  • 49
  • 224
  • 367
1
vote
2 answers

echo All Elements of an ItemGroup

I have an MSBuild ItemGroup and I would like to be able to echo it out in the "Post-Build Event". However when I try commands like: echo My ItemGroup: @(Foo) I get the error: error MSB4164: The value "echo My ItemGroup: @(Foo)" of metadata…
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288
1
vote
1 answer

MsBuild Item function count does not work

I am running Expecting to see "2" as the result Error I'm getting…
1
vote
0 answers

MSBuild Exec Task, split exit codes by itemgroup

I have a set of applications launched during build (msbuild). Command metadata is used for testing only in production it will contain real command line. How can I implement the output for Exec task to know that Application 1 is completed with exit…
Warr
  • 118
  • 6