MSBuild transform not evaluating wildcards -
I'm having a problem with an MSBuild file that I'm trying to compile some custom libraries.
& lt; Asset group & gt; & Lt; FullVersion & gt; 10.8.0.0 & lt; / FullVersion & gt; & Lt; / PropertyGroup & gt; & Lt; ItemGroup & gt; & Lt; Include LibsToBuild = ". \ Lib1" & gt; & Lt; Bin & gt; Bin \ * * & lt; / Bin & gt; & Lt; Project & gt; Library 1 & lt; / Project & gt; & Lt; Build & gt; ReleaseNoProtect & lt; / Build & gt; & Lt; Version & gt; CurrentVersion & lt; / Edition & gt; & Lt; / LibsToBuild & gt; & Lt; Include LibsToBuild = ".. Lib2" & gt; & Lt; Bin & gt; Bin \ * * & lt; / Bin & gt; & Lt; Project & gt; Library 2 & lt; / Project & gt; & Lt; Build & gt; ReleaseLibrary & lt; / Build & gt; & Lt; Version & gt; CurrentVersion & lt; / Edition & gt; & Lt; / LibsToBuild & gt; & Lt; / ItemGroup & gt; & Lt; ItemGroup & gt; & Lt; Include LibsToCopy = "@ (LibsToBuild- & gt; '% (FullPath) \% (version) \% (bin)')" /> & Lt; / ItemGroup & gt; & Lt; Target name = "buildlibs" & gt; & Lt; MSBuild Projects = "@ (LibsToBuild- & gt; '% (FullPath) \% (version) \ build \ build.proj')" target = "% (LibsToBuild.Build)" property = "configuration = release; APP_VERSION = $ (Fullscreen); project =% (LibsToBuild.Project) "/> & Lt; Copy SourceFiles = "@ (LibsToCopy)" DestinationFiles = "@ (LibsToCopy-> Libraries / CurrentVersion \ %% (RecursiveDir)% (filename)% (extension) '')" /> & lt ;! - & lt; Exec Command = 'xcopy / y @ (LibsToCopy). \ Libraries \ CurrentVersion \ / & gt; - & gt; & Lt; / Target & gt;
When I run it through MSBuild, all compiles work but the copy file does not contain MSBuild complains with the following errors: < / P>
"X: \ Projects \ Lib1 \ Master \ bin \ *. \" From "\" libraries \ CurrentVersion \ *. X: \ Projects \ Test Release.build (35,3): Error MSB3021: "X: \ Projects \ Lib1 \ Master \ bin \ *." "." \ "Libraries \ CurrentVersion \ *. Illegal characters on the way" X: \ Projects \ Lib2 \ Master \ bin \ *. * "From". \ "Libraries \ CurrentVersion \ *. \ Projects \ Test Release.build (35,3): Error MSB3021:" X: \ Projects \ Lib1 \ Master \ bin \ *. "" \ "Libraries \ CurrentVersion \ *. . Illegal letter on the way
I am unable to locate why the "LibsToCopy" itemGroup is not expanding the filename of the wildcard.
I also tried to use xcopy, but it does not like wildcard.
Thank you! Dave
I had a similar problem. & lt; Copy & gt;
Tasks
& lt; Try it before AddItem = "@ (LibsToBuild-> '% (FullPath) \% (version), \% (bin)')" & gt; & Lt; Output Task parameter = "Include item name" = "LibsToCopy" /> & Lt; / CreateItem & gt; Unfortunately, the documentation says that CreateItem
dislikes the work, so I do not know how to solve the TIS problem in the future.
Comments
Post a Comment