.NET Framework Bookmark and Share   
 index > MSBuild > Recopying SVC files
 

Recopying SVC files

I'm using a web deployment project for a WCF web app. The problem is that this project mangles the .svc files, replacing service related tags with a dummy marker text line.

Is there a way to re-copy over the .svc files from the project directory? If I have 1...x service files, I wanted to have an MSBuild task that would simply copy from the $(ProjectDir) to the $(OutputPath), replacing the mangled .svcs with what is actually in the project folder. However, my $(ProjectDir) variable is empty. Is it not available from within MSBuild?

TIA
SultanOfSuede

The $(ProjectDir) property equals to $(MSBuildProjectDirectory) which is a reserved property referencing to the directory of your project file.It shouldn't be empty.

In which target you reference the property?


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hongye Sun

Are you still having this issue?


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hongye Sun

We are changing the issue type to “Comment�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Hongye Sun

You can use google to search for other answers

Custom Search

More Threads

• vista deployment issue
• MSBuild (VS 2008 - 3.5) OutOfMemoryException during large multi solution build
• Well-known Item Metadata Usage scenarios
• What are the best practise to automate the daily build process of unmanaged c++ code?
• How to call a batch file for compiling non-VS projects?
• References for Excel stuff
• Custom task fails to populate property with empty string
• MSBuild NewBie question
• MSBuild managed(CS) and unmanaged(C++) code
• Setup project for executing msbuild project