-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET 4.5 MSBuild Transforms not working #71
Comments
You can ignore the xml warnings - Visual Studio editor has an xsd for msbuild, but it only contains a limited set of items. MSBuild xml ultimately has no defined schema for properties and item metadata. I believe the issue is slow-cheetah is running, but app.config is then being copied to the output directory and undoing the transform. Can you remove this line and try again: <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
I removed the above line but now there is no |
Ok, more info. I turned on Detailed verbosity for MSBuild. The However, further down, the -sc.App.config file is then copied into |
I believe this can be closed now, the issue I think was as @jviau pointed out and the app was looking at the copied |
@johnmurphy01 sorry, I completely missed that this was an app.config file. You are correct, app.configs are transformed to |
I have version
3.0.61
installed via Nuget.My project is a .NET 4.5 Console Application(using Visual Studio 2015) and I want to transform my App.config file. I have created the transforms
In the
.csproj
file, I see that the markup necessary to get SlowCheetah to work is present(although there are warnings about invalid child elements forTransformOnBuild
andIsTransformFile
:I see that the target for SlowCheetah is referenced:
But, when I build my project, for example in Release configuration, my transforms were not applied. In the output window, I do not see any reference to the fact that SlowCheetah is even trying to run, making me think that the Tasks are just not running and/or aren't being referenced.
Ultimately, I want to be able to run MSBuild during my Continuous Integration process and have the transforms apply appropriately.
The text was updated successfully, but these errors were encountered: