Little Gem for MSBuild

Just when I thought I had closed out my blog for the year, I stumbled across a post in the MSBuild forum.  Victor Chen is one of those forum monitors that knows his stuff inside and out.  He happened to post a reply to someone about updating config files and I had forgotten this little gem was available in MSBuild.  You can easily update files with something like this:

<FileUpdate Condition=” ‘$(Configuration)|$(Platform)’ == ‘Foo1|Foo2′”
                ReplacementText=”Foo=&quot;sth2&quot;” />

Keep this in your toolkit.  It could help you out in a pinch.

Happy coding!

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s