← all demos
Project
PropertyGroup
if '$(ImportByWildcardBeforeMicrosoftCSharpTargets)' == '':
ImportByWildcardBeforeMicrosoftCSharpTargets = true
if '$(ImportByWildcardAfterMicrosoftCSharpTargets)' == '':
ImportByWildcardAfterMicrosoftCSharpTargets = true
if '$(ImportUserLocationsByWildcardBeforeMicrosoftCSharpTargets)' == '':
ImportUserLocationsByWildcardBeforeMicrosoftCSharpTargets = true
if '$(ImportUserLocationsByWildcardAfterMicrosoftCSharpTargets)' == '':
ImportUserLocationsByWildcardAfterMicrosoftCSharpTargets = true
if '$(ImportUserLocationsByWildcardBeforeMicrosoftCSharpTargets)' == 'true' and exists('$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.CSharp.targets\ImportBefore'):
Import "$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.CSharp.targets\ImportBefore\*"
if '$(ImportByWildcardBeforeMicrosoftCSharpTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.CSharp.targets\ImportBefore'):
Import "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.CSharp.targets\ImportBefore\*"
PropertyGroup
if '$(CustomBeforeMicrosoftCSharpTargets)'=='':
CustomBeforeMicrosoftCSharpTargets = $(MSBuildExtensionsPath)\v$(MSBuildToolsVersion)\Custom.Before.Microsoft.CSharp.targets
if '$(CustomAfterMicrosoftCSharpTargets)'=='':
CustomAfterMicrosoftCSharpTargets = $(MSBuildExtensionsPath)\v$(MSBuildToolsVersion)\Custom.After.Microsoft.CSharp.targets
if '$(CustomBeforeMicrosoftCSharpTargets)' != '' and Exists('$(CustomBeforeMicrosoftCSharpTargets)'):
Import "$(CustomBeforeMicrosoftCSharpTargets)"
PropertyGroup
DefaultLanguageSourceExtension = .cs
Language = C#
TargetRuntime = Managed
AlwaysUseNumericalSuffixInItemNames = true
if '$(DefineCommonItemSchemas)' == '':
DefineCommonItemSchemas = true
if '$(DefineCommonReferenceSchemas)' == '':
DefineCommonReferenceSchemas = true
if '$(DefineCommonCapabilities)' == '':
DefineCommonCapabilities = true
if '$(SynthesizeLinkMetadata)' == '' and '$(HasSharedItems)' == 'true':
SynthesizeLinkMetadata = true
if '$(DefaultProjectTypeGuid)' == '':
DefaultProjectTypeGuid = {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
if '$(AppDesignerFolder)' == '':
AppDesignerFolder = Properties
if '$(DefineCSharpItemSchemas)' != 'false':
ItemGroup
PropertyPageSchema += "$(CommonXamlResourcesDirectory)CSharp.ProjectItemsSchema.xaml;"
PropertyPageSchema += "$(CommonXamlResourcesDirectory)CSharp.xaml;"
Context = File
PropertyPageSchema += "$(CommonXamlResourcesDirectory)CSharp.BrowseObject.xaml;"
Context = BrowseObject
ProjectCapability += "CSharp;Managed"
if '$(DefineCommonCapabilities)' == 'true':
ItemGroup
ProjectCapability += "ReferencesFolder;LanguageService"
PropertyGroup
CreateManifestResourceNamesDependsOn
if '@(EmbeddedResource)' != '':
Target CreateManifestResourceNames(DependsOnTargets="$(CreateManifestResourceNamesDependsOn)")
ItemGroup
_Temporary -= "@(_Temporary)"
if '%(EmbeddedResource.ManifestResourceName)' == '' and ('%(EmbeddedResource.WithCulture)' == 'false' or '%(EmbeddedResource.Type)' == 'Resx'):
CreateCSharpManifestResourceName(
EnableCustomCulture="$(EnableCustomCulture)",
ResourceFiles="@(EmbeddedResource)",
RootNamespace="$(RootNamespace)",
UseDependentUponConvention="$(EmbeddedResourceUseDependentUponConvention)")
Output(ItemName="_Temporary", TaskParameter="ResourceFilesWithManifestResourceNames")
if '%(EmbeddedResource.ManifestResourceName)' == '' and '%(EmbeddedResource.WithCulture)' == 'true' and '%(EmbeddedResource.Type)' == 'Non-Resx':
CreateCSharpManifestResourceName(
PrependCultureAsDirectory="false",
ResourceFiles="@(EmbeddedResource)",
RootNamespace="$(RootNamespace)",
UseDependentUponConvention="$(EmbeddedResourceUseDependentUponConvention)")
Output(ItemName="_Temporary", TaskParameter="ResourceFilesWithManifestResourceNames")
ItemGroup
if '%(EmbeddedResource.ManifestResourceName)' == '':
EmbeddedResource -= "@(EmbeddedResource)"
EmbeddedResource += "@(_Temporary)"
_Temporary -= "@(_Temporary)"
if '$(CodeAnalysisRuleSet)' != '':
Target ResolveCodeAnalysisRuleSet
ResolveCodeAnalysisRuleSet(
CodeAnalysisRuleSet="$(CodeAnalysisRuleSet)",
CodeAnalysisRuleSetDirectories="$(CodeAnalysisRuleSetDirectories)",
MSBuildProjectDirectory="$(MSBuildProjectDirectory)")
Output(
PropertyName="ResolvedCodeAnalysisRuleSet",
TaskParameter="ResolvedCodeAnalysisRuleSet")
ItemGroup
ProjectCapability += "RelativePathDerivedDefaultNamespace"
PropertyGroup
if '$(UseHostCompilerIfAvailable)' == '':
UseHostCompilerIfAvailable = true
ItemGroup
if '$(DocumentationFile)'!='':
DocFileItem += "$(DocumentationFile)"
if '$(_DebugSymbolsProduced)' == 'true' and '$(PdbFile)' != '':
ItemGroup
_DebugSymbolsIntermediatePathTemporary += "$(PdbFile)"
_DebugSymbolsIntermediatePath += "@(_DebugSymbolsIntermediatePathTemporary->'%(RootDir)%(Directory)%(Filename).pdb')"
PropertyGroup
CoreCompileDependsOn = $(CoreCompileDependsOn);_ComputeNonExistentFileProperty;ResolveCodeAnalysisRuleSet
if '$(ExportWinMDFile)' == '' and '$(OutputType)' == 'WinMDObj':
ExportWinMDFile = true
if '@(Page)' != '' Or '@(ApplicationDefinition)' != '':
Target XamlPreCompile(
DependsOnTargets=[
$(CoreCompileDependsOn)
GenerateMSBuildEditorConfigFile
],
Inputs="$(MSBuildAllProjects);
@(Compile);
@(_CoreCompileResourceInputs);
$(ApplicationIcon);
$(AssemblyOriginatorKeyFile);
@(ReferencePath);
@(CompiledLicenseFile);
@(LinkResource);
@(EmbeddedDocumentation);
$(Win32Resource);
$(Win32Manifest);
@(CustomAdditionalCompileInputs);
@(Page);
@(ApplicationDefinition);
$(ResolvedCodeAnalysisRuleSet)",
Outputs="@(DocFileItem);
@(XamlIntermediateAssembly);
@(_DebugSymbolsIntermediatePath);
$(NonExistentFile);
@(CustomAdditionalCompileOutputs)",
Returns="")
if ('$(TargetFrameworkVersion)' != 'v1.0') and ('$(TargetFrameworkVersion)' != 'v1.1'):
PropertyGroup
NoWarn = $(NoWarn);1701;1702
PropertyGroup
if '$(BuildingInsideVisualStudio)' == 'true' and '$(VisualStudioVersion)' != '' and '$(VisualStudioVersion)' > '10.0':
NoWarn = $(NoWarn);2008
if '$(TargetingClr2Framework)'=='true':
ItemGroup
ReferencePath
EmbedInteropTypes
PropertyGroup
if '$(AppConfigForCompiler)' == '' and '$(UseAppConfigForCompiler)' == 'true':
AppConfigForCompiler = $(AppConfig)
if '$(PdbFile)' == '' and '$(OutputType)' == 'winmdobj' and '$(_DebugSymbolsProduced)' == 'true':
PdbFile = $(IntermediateOutputPath)$(TargetName).compile.pdb
if ('$(TargetFrameworkVersion)' == 'v4.0'):
PropertyGroup
Prefer32Bit = false
if ('$(AdditionalFileItemNames)' != ''):
ItemGroup
AdditionalFileItems += "$(AdditionalFileItemNames)"
AdditionalFiles += "@(%(AdditionalFileItems.Identity))"
if '$(UseSharedCompilation)' == '':
PropertyGroup
UseSharedCompilation = true
if '%(_CoreCompileResourceInputs.WithCulture)' != 'true':
Csc(
AddModules="@(AddModules)",
AdditionalFiles="@(AdditionalFiles)",
AdditionalLibPaths="$(AdditionalLibPaths)",
AllowUnsafeBlocks="$(AllowUnsafeBlocks)",
AnalyzerConfigFiles="@(EditorConfigFiles)",
Analyzers="@(Analyzer)",
ApplicationConfiguration="$(AppConfigForCompiler)",
BaseAddress="$(BaseAddress)",
CheckForOverflowUnderflow="$(CheckForOverflowUnderflow)",
ChecksumAlgorithm="$(ChecksumAlgorithm)",
CodeAnalysisRuleSet="$(ResolvedCodeAnalysisRuleSet)",
CodePage="$(CodePage)",
CompilerType="$(RoslynCompilerType)",
DebugType="none",
DefineConstants="$(DefineConstants)",
DelaySign="$(DelaySign)",
Deterministic="$(Deterministic)",
DisableSdkPath="$(DisableSdkPath)",
DisabledWarnings="$(NoWarn)",
DocumentationFile="@(DocFileItem)",
EmbedAllSources="false",
EmbeddedFiles="@(EmbeddedFiles)",
EmitDebugInformation="$(DebugSymbols)",
EnvironmentVariables="$(CscEnvironment)",
ErrorEndLocation="$(ErrorEndLocation)",
ErrorLog="$(ErrorLog)",
ErrorReport="$(ErrorReport)",
Features="$(Features)",
FileAlignment="$(FileAlignment)",
GenerateFullPaths="$(GenerateFullPaths)",
HighEntropyVA="$(HighEntropyVA)",
Instrument="$(Instrument)",
InterceptorsNamespaces="$(InterceptorsNamespaces)",
InterceptorsPreviewNamespaces="$(InterceptorsPreviewNamespaces)",
KeyContainer="$(KeyContainerName)",
KeyFile="$(KeyOriginatorFile)",
LangVersion="$(LangVersion)",
LinkResources="@(LinkResource)",
MainEntryPoint="$(StartupObject)",
ModuleAssemblyName="$(ModuleAssemblyName)",
NoConfig="true",
NoLogo="$(NoLogo)",
NoStandardLib="$(NoCompilerStandardLib)",
NoWin32Manifest="$(NoWin32Manifest)",
Nullable="$(Nullable)",
Optimize="$(Optimize)",
OutputAssembly="@(XamlIntermediateAssembly)",
PathMap="$(PathMap)",
Platform="$(PlatformTarget)",
Prefer32Bit="$(Prefer32Bit)",
PreferredUILang="$(PreferredUILang)",
ProjectName="$(MSBuildProjectName)",
ProvideCommandLineArgs="$(ProvideCommandLineArgs)",
PublicSign="$(PublicSign)",
RefOnly="false",
References="@(ReferencePath)",
ReportAnalyzer="$(ReportAnalyzer)",
ReportIVTs="$(ReportIVTs)",
Resources="@(_CoreCompileResourceInputs);@(CompiledLicenseFile)",
ResponseFiles="$(CompilerResponseFile)",
RuntimeMetadataVersion="$(RuntimeMetadataVersion)",
SharedCompilationId="$(SharedCompilationId)",
SkipAnalyzers="true",
SkipCompilerExecution="$(SkipCompilerExecution)",
SourceLink="$(SourceLink)",
Sources="@(Compile)",
SubsystemVersion="$(SubsystemVersion)",
TargetFramework="$(TargetFramework)",
TargetType="$(OutputType)",
ToolExe="$(CscToolExe)",
ToolPath="$(CscToolPath)",
TreatWarningsAsErrors="$(TreatWarningsAsErrors)",
UseHostCompilerIfAvailable="$(UseHostCompilerIfAvailable)",
UseSharedCompilation="$(UseSharedCompilation)",
Utf8Output="$(Utf8Output)",
VsSessionGuid="$(VsSessionGuid)",
WarningLevel="$(WarningLevel)",
WarningsAsErrors="$(WarningsAsErrors)",
WarningsNotAsErrors="$(WarningsNotAsErrors)",
Win32Icon="$(ApplicationIcon)",
Win32Manifest="$(Win32Manifest)",
Win32Resource="$(Win32Resource)",
OutputRefAssembly,
PdbFile)
if '$(OnXamlPreCompileErrorTarget)' != '':
OnError(ExecuteTargets="$(OnXamlPreCompileErrorTarget)")
PropertyGroup
if '$(CSharpCoreTargetsPath)' == '' or ('$(DesignTimeBuild)' == 'true' and $(CSharpCoreTargetsPath.Contains('Microsoft.Net.Compilers.1.0.0'))):
CSharpCoreTargetsPath = $(RoslynTargetsPath)\Microsoft.CSharp.Core.targets
Import "$(CSharpCoreTargetsPath)"
PropertyGroup
if '$(CSharpDesignTimeTargetsPath)'=='':
CSharpDesignTimeTargetsPath = $(MSBuildExtensionsPath)\Microsoft\VisualStudio\Managed\Microsoft.CSharp.DesignTime.targets
if '$(CSharpDesignTimeTargetsPath)' != '' and Exists('$(CSharpDesignTimeTargetsPath)'):
Import "$(CSharpDesignTimeTargetsPath)"
Import "Microsoft.Common.targets"
if ('$(TargetFrameworkVersion)' != 'v2.0' and '$(TargetFrameworkVersion)' != 'v3.0' and '$(TargetFrameworkVersion)' != 'v3.5') and Exists('$(MSBuildToolsPath)\Microsoft.ServiceModel.targets'):
Import "$(MSBuildToolsPath)\Microsoft.ServiceModel.targets"
Target _SetTargetFrameworkMonikerAttribute(
BeforeTargets="GenerateTargetFrameworkMonikerAttribute")
PropertyGroup
if '$(TargetFrameworkMoniker)' != '' and '$(TargetingClr2Framework)' != 'true':
TargetFrameworkMonikerAssemblyAttributeText =
| // <autogenerated />
| using System%3b
| using System.Reflection%3b
| [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute("$(TargetFrameworkMoniker)", FrameworkDisplayName = "$(TargetFrameworkMonikerDisplayName)")]
PropertyGroup
if '$(Utf8Output)' == '':
Utf8Output = true
if '$(NoCompilerStandardLib)' == '':
NoCompilerStandardLib = true
if '$(BuildingInsideVisualStudio)' == 'true' and '$(ErrorEndLocation)' == '':
ErrorEndLocation = true
if '$(BuildingInsideVisualStudio)' == 'true' and '$(PreferredUILang)' == '':
PreferredUILang = $([System.Globalization.CultureInfo]::CurrentUICulture.Name)
if '$(NoCompilerStandardLib)' == 'true' and '$(NoStdLib)' != 'true':
ItemGroup
_ExplicitReference += "$(FrameworkPathOverride)\mscorlib.dll"
if '$(MSBuildRuntimeType)' == 'Full' and exists('$([MSBuild]::GetToolsDirectory32())\..\..\..\Common7\IDE\CommonExtensions\Microsoft\ProjectServices\Microsoft.DesignTime.targets'):
Import "$([MSBuild]::GetToolsDirectory32())\..\..\..\Common7\IDE\CommonExtensions\Microsoft\ProjectServices\Microsoft.DesignTime.targets"
if '$(CustomAfterMicrosoftCSharpTargets)' != '' and Exists('$(CustomAfterMicrosoftCSharpTargets)'):
Import "$(CustomAfterMicrosoftCSharpTargets)"
if '$(ImportByWildcardAfterMicrosoftCSharpTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.CSharp.targets\ImportAfter'):
Import "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.CSharp.targets\ImportAfter\*"
if '$(ImportUserLocationsByWildcardAfterMicrosoftCSharpTargets)' == 'true' and exists('$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.CSharp.targets\ImportAfter'):
Import "$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.CSharp.targets\ImportAfter\*"