This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<OnAfterPipelineCollectFilesPhase> | |
$(OnAfterPipelineCollectFilesPhase); | |
MSDeploySetParametersFile; | |
MSDeploySetParameters; | |
MSDeploySetParametersUpdate; | |
</OnAfterPipelineCollectFilesPhase> | |
</PropertyGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Microsoft.Web.Deployment | |
{ | |
public enum DeploymentWellKnownTag | |
{ | |
None = 0b0000000000000000000000000000000000000000000000000000000000000000, | |
AppHostConfig = 0b0000000000000000000000000000000000000000000000000000000000000001, | |
AppPoolConfig = 0b0000000000000000000000000000000000000000000000000000000000000010, | |
Boolean = 0b0000000000000000000000000000000000000000000000000000000000000100, | |
ComObject32 = 0b0000000000000000000000000000000000000000000000000000000000001000, | |
ComObject64 = 0b0000000000000000000000000000000000000000000000000000000000010000, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function AddProjectReferences($project, $solution, $fullName) | |
{ | |
$projects = $solution | select FullName | |
if ($projects.FullName -notcontains $fullName) | |
{ | |
$solution.AddFromFile($fullName) | |
} | |
$dir = [System.IO.Path]::GetDirectoryName($fullName) | |
[xml]$msbuild = Get-Content $fullName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup Condition=" '$(WebPublishMethod)' == 'FileSystem'"> | |
<publishUrl Condition="!HasTrailingSlash('$(publishUrl)')">$(publishUrl)\</publishUrl> | |
<publishUrl>$(publishUrl)$(Configuration)\</publishUrl> | |
</PropertyGroup> | |
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir> | |
<!-- Windows specific commands --> | |
<NuGetToolsPath Condition=" '$(OS)' == 'Windows_NT'">$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath> | |
<PackagesConfig Condition=" '$(OS)' == 'Windows_NT'">$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig> | |
<PackagesDir Condition=" '$(OS)' == 'Windows_NT'">$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Program Files (x86)\MSBuild\12.0\Bin\Microsoft.Common.CurrentVersion.targets | |
<Target Name="_CheckForInvalidConfigurationAndPlatform"></Target> | |
<Target Name="Build" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(BuildDependsOn)" Returns="$(TargetPath)" /> | |
<Target Name="BeforeBuild" /> | |
<Target Name="AfterBuild" /> | |
<Target Name="CoreBuild" DependsOnTargets="$(CoreBuildDependsOn)"></Target> | |
<Target Name="Rebuild" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(RebuildDependsOn)" Returns="$(TargetPath)" /> | |
<Target Name="BeforeRebuild" /> | |
<Target Name="AfterRebuild" /> | |
<Target Name="BuildGenerateSources" DependsOnTargets="BuildGenerateSourcesTraverse;$(BuildGenerateSourcesAction)" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Target Name="AfterBuild" DependsOnTargets="BuildPackage" /> | |
<Target Name="BuildPackage" DependsOnTargets="BuildPackageCore" Outputs="$(Packages)" Condition=" '$(BuildPackage)' == 'True' " /> | |
<Target Name="BuildPackageCore"> | |
<PropertyGroup> | |
<!-- Escape the OutDir's trailing slash --> | |
<_PackagesOutDir Condition="HasTrailingSlash('$(OutDir)')">"$(OutDir)\"</_PackagesOutDir> | |
<_PackagesOutDir Condition="!HasTrailingSlash('$(OutDir)')">"$(OutDir)\\"</_PackagesOutDir> | |
</PropertyGroup> | |
<Exec ContinueOnError="ErrorAndContinue" ConsoleToMSBuild="True" Command=""$(SolutionDir)tools\nuget.exe" pack "$(MSBuildThisFileFullPath)" -Symbols -IncludeReferencedProjects -OutputDirectory $(_PackagesOutDir) -Properties Configuration=$(Configuration)"> | |
<Output TaskParameter="ConsoleOutput" ItemName="_out" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Common | |
{ | |
using System; | |
using System.Collections.ObjectModel; | |
using System.Diagnostics; | |
using System.Linq; | |
[DebuggerDisplay( | |
"Display name = {Name}, alpha-2 = {TwoLetterCode}, alpha-3 = {ThreeLetterCode}, numeric = {NumericCode}")] | |
public sealed class Country |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
namespace Sys | |
{ | |
class Program | |
{ |