Visual Studio Development Bookmark and Share   
 index > Visual Studio Extensibility > .targets file
 

.targets file

Is it mandantory that we import the Microsoft.Common.targets file in our .targets file? If so, is there any documentation that defines what targets must be overriden?

Thanks,

Mike

michael olson  Monday, February 06, 2006 4:22 PM

It is not mandatory. The main reason to import those is if you wish to take advantage of the existing functionality the MSBuild team built for existing languages. If your language is different enough or if your project is not a language project, then it may make sense not to include it.

The best way to understand how the targets defined in Microsoft.Common.targets work is probably to look in the file. Also, when you build you can set the verbosity higher (by example: msbuild <projectfile> /v:diag) to get a more detailed log and comparing that to the content of the target file.

Rusty

Rusty Deschenes  Tuesday, February 07, 2006 5:14 PM

It is not mandatory. The main reason to import those is if you wish to take advantage of the existing functionality the MSBuild team built for existing languages. If your language is different enough or if your project is not a language project, then it may make sense not to include it.

The best way to understand how the targets defined in Microsoft.Common.targets work is probably to look in the file. Also, when you build you can set the verbosity higher (by example: msbuild <projectfile> /v:diag) to get a more detailed log and comparing that to the content of the target file.

Rusty

Rusty Deschenes  Tuesday, February 07, 2006 5:14 PM

You can use google to search for other answers

Custom Search

More Threads

• How to support template export in VS 2005?
• Create dynamic tool windows with user controls in it
• Generate value of a field in a WorkItem
• Addin Logging
• Tooltip on a node in the solution explorer?
• Virtual Lab for DSL is not working
• Enabling Code Snippets for Javascript
• Separate buttons fire same event - HELP ME PLEASE
• Problem with window persistance / placement
• Question on Visual Studio 2005 SDK\2006.09\VisualStudioIntegration\Samples\IDE\CSharp\Reference.ToolWindow example