Geeks With Blogs
Robert Bernstein's Blog Adventures in Windows, .NET, and C++

When you right-click on your WPF project in Visual Studio 2010 (VS2010) and select Add / New Item... / Text File, the "Build Action" on this file is automatically set to "Resource."  So, when you ship your application, this text file will be embedded within it.  If this was simply meant to be a readme file for your own benefit, you may not want it embedded in your app.  In this case, click on the text file in Solution Explorer (or Solution Navigator), go to the Properties window, and change "Build Action" from "Resource" to "None."


Posted on Friday, September 24, 2010 3:19 PM .NET , Visual Studio | Back to top

Comments on this post: VS2010 Automatically Includes Your Text Files as Resources

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Rob | Powered by: