creativz
creativz

Reputation: 10787

how to clean one projectfile with devenv?

How can I clean a single vc project file? I tried this:

devenv SolutionName.sln /Clean SolnConfigName The\Path\to\the\FileToClean.vcproj

but it dosn't work. How can I do it? thanks

Upvotes: 1

Views: 1193

Answers (2)

creativz
creativz

Reputation: 10787

I replaced "The\Path\to\the\FileToClean.vcproj" with "FileToClean". Now it works

Upvotes: 0

Ahmad Mageed
Ahmad Mageed

Reputation: 96477

According to the MSDN reference for /Clean the syntax is:

devenv /clean SolnConfigName SolutionName [/project ProjName] [/projectconfig ProjConfigName]

For example:

devenv /clean Debug "C:\Documents and Settings\someuser\My Documents\Visual Studio\Projects\MySolution\MySolution.sln" /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug

Upvotes: 3

Related Questions