GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bigT/Common.targets

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
build
build
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
Common.targets.nuspec
Common.targets.nuspec
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Common.targets

Introduces a Common.targets file at a solution level. Adding this package to multiple projects in the solution allows sharing of common targets across projects. Adding 'BeforeBuild and 'AfterBuild' targets can be done in one place and shared between multiple projects.

Tedious task of manually editing individual project files is now replaced by package installation. Changes made to the Common.targets take immediate effect.

Here is a sample solution level targets file that would add common 'BeforeBuild' and 'AfterBuild' targets to a project. Using conditions on targets and tasks a fine grained control can be achieved over what is executed based on the context of individual projects:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <!--
         Define common solution properties. The properties will be add to all
         projects that have installed 'Install-Package Solution.prop' package.

         E.g.
         <Target Name="BeforeBuild">
               <Error Text="Web.config is not allowed in a Sitecore web project. Consider merging into web.transform.config or remove it." ..
                      Condition="Exists( '$(MSBuildProjectDirectory)\web.config' )" />
             </Target>
    -->
  </PropertyGroup>
</Project>

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.