Skip to content

Instantly share code, notes, and snippets.

@xoofx
Created May 12, 2016 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xoofx/7ff3ca4f70c100430dd8045e0d44d2d1 to your computer and use it in GitHub Desktop.
Save xoofx/7ff3ca4f70c100430dd8045e0d44d2d1 to your computer and use it in GitHub Desktop.
Microsoft.Common.CurrentVersion.targets with a DSL
/***********************************************************************************************
Microsoft.Common.CurrentVersion.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
This file defines the steps in the standard build process for .NET projects. It
contains all the steps that are common among the different .NET languages, such as
Visual Basic, and Visual C#.
Copyright (C) Microsoft Corporation. All rights reserved.
***********************************************************************************************/
project {default_targets:"build", initial_targets:"_CheckForInvalidConfigurationAndPlatform", treat_as_local_property:"OutDir"}
if !MicrosoftCommonPropsHasBeenImported && file.exist('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')
import "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
end
ImportByWildcardBeforeMicrosoftCommonTargets = ImportByWildcardBeforeMicrosoftCommonTargets ?? true
ImportByWildcardAfterMicrosoftCommonTargets = ImportByWildcardAfterMicrosoftCommonTargets ?? true
ImportUserLocationsByWildcardBeforeMicrosoftCommonTargets = ImportUserLocationsByWildcardBeforeMicrosoftCommonTargets ?? true
ImportUserLocationsByWildcardAfterMicrosoftCommonTargets = ImportUserLocationsByWildcardAfterMicrosoftCommonTargets ?? true
if ImportUserLocationsByWildcardBeforeMicrosoftCommonTargets && file.exist("$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportBefore")
import "$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportBefore\*"
end
if ImportByWildcardBeforeMicrosoftCommonTargets && file.exist("$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportBefore")
import "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportBefore\*"
end
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment