Skip to content

Beyova/VisualStudioProjectItemConditionExtension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Item Condition Extension Build status

Background

Applying MS build condition based on specific file(s) is not a common case, but when you have to face this kind of case, you would always feel upset to manually change XML project file directly.

Typical case of apply MS build condition:

  • File configurations, like based on different environments
  • Resource files, images, localizations, etc. for different environment or purposes.
  • Source codes for different environment or purposes.

How to install extension

In Visual Studio Extension Marketplace, search and install Project Item Condition Extension.

How to use extension

Image of preview

Applying condition on file(s)

When your solution/project are opened in Visual Studio -> Select any source code file -> Right click and select Apply Item Condition menu item -> In popup dialog, select the build condition you want to apply -> Click Apply button -> Done. (Visual Studio would remind you to reload solution/projects. Please do it and condition take effected.)

Initialize envrionment based build configuration

When your solution/project are opened in Visual Studio -> Select any source code file -> Right click and select Setup Configuration (DEV/QA/STAGING/PROD) menu item -> Done. (It would update and save all documents)

Others.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages