⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sharpdevelop.build.mono.mcs.targets

📁 SharpDevelop2.0.0 c#开发免费工具
💻 TARGETS
字号:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">

	<Import Project="$(SharpDevelopBinPath)\SharpDevelop.Build.Common.targets" />

	<UsingTask TaskName="ICSharpCode.Build.Tasks.Mcs"
	           AssemblyFile="$(SharpDevelopBinPath)\ICSharpCode.Build.Tasks.dll"/>
 	<UsingTask TaskName="ICSharpCode.Build.Tasks.GetMonoFrameworkPath"
	           AssemblyFile="$(SharpDevelopBinPath)\ICSharpCode.Build.Tasks.dll"/>
 	<UsingTask TaskName="ICSharpCode.Build.Tasks.GetMonoFrameworkSdkPath"
	           AssemblyFile="$(SharpDevelopBinPath)\ICSharpCode.Build.Tasks.dll"/>
 	<UsingTask TaskName="ICSharpCode.Build.Tasks.AddMonoAssemblySearchPaths"
	           AssemblyFile="$(SharpDevelopBinPath)\ICSharpCode.Build.Tasks.dll"/>

	<PropertyGroup>
        <MSBuildAllProjects>$(MSBuildAllProjects);$(SharpDevelopBinPath)\SharpDevelop.Build.Mono.targets</MSBuildAllProjects>
        <DefaultLanguageSourceExtension>.cs</DefaultLanguageSourceExtension>
        <Language>C#</Language>
    </PropertyGroup>
	
	<!-- Override AssemblySearchPaths property and remove Microsoft specific search paths -->
	<PropertyGroup>
		<AssemblySearchPaths>
			{CandidateAssemblyFiles};
			$(ReferencePath);
			{HintPathFromItem};
			{TargetFrameworkDirectory};
			{MonoGAC};
			{RawFileName};
			$(OutputPath)
		</AssemblySearchPaths> 
	</PropertyGroup>
	
	<Target	Name="GetFrameworkPaths">
		<!-- Get the path to the target Mono Framework directory. -->
		<GetMonoFrameworkPath TargetFrameworkVersion="$(TargetFrameworkVersion)">
			<Output TaskParameter="Path" PropertyName="TargetFrameworkDirectory"/>
			<Output TaskParameter="Path" ItemName="_TargetFrameworkDirectoryItem"/>
		</GetMonoFrameworkPath>
	
		<!-- Get the path to the target the Mono SDK directory. -->
		<GetMonoFrameworkSDKPath>
			<Output TaskParameter="Path" PropertyName="TargetFrameworkSDKDirectory"/>
			<Output TaskParameter="Path" ItemName="_TargetFrameworkSDKDirectoryItem"/>
		</GetMonoFrameworkSDKPath>
	</Target>
	
	<!-- Modify what the ResolveAssemblyReferences tasks depends on so the
	     AssemblySearchPaths can be modified to use the Mono GAC -->
	<PropertyGroup>
		<ResolveAssemblyReferencesDependsOn>
			GetFrameworkPaths;
			GetRedistLists;
			PrepareForBuild;
			AddMonoAssemblySearchPaths
		</ResolveAssemblyReferencesDependsOn>
	</PropertyGroup>
	<Target Name="AddMonoAssemblySearchPaths">
		<AddMonoAssemblySearchPaths 
			Assemblies="@(Reference)"
			Paths="$(AssemblySearchPaths)">
			
			<Output TaskParameter="Paths" PropertyName="AssemblySearchPaths"/>
		</AddMonoAssemblySearchPaths>
	</Target>
    
	<Target
        Name="CoreCompile"
        Inputs="$(MSBuildAllProjects);
                @(Compile);
                @(ManifestResourceWithNoCulture);
                $(ApplicationIcon);
                $(AssemblyOriginatorKeyFile);
                @(ManifestNonResxWithNoCultureOnDisk);
                @(ReferencePath);
                @(CompiledLicenseFile)"
        Outputs="@(DocFileItem);
                 @(IntermediateAssembly);
                 $(NonExistentFile)"
        DependsOnTargets="$(CoreCompileDependsOn)"
    >
       
        <Mcs
              AdditionalLibPaths="$(AdditionalLibPaths)"
              AddModules="@(AddModules)"
              AllowUnsafeBlocks="$(AllowUnsafeBlocks)"
              CheckForOverflowUnderflow="$(CheckForOverflowUnderflow)"
              CodePage="$(CodePage)"
              DebugType="$(DebugType)"
              DefineConstants="$(DefineConstants)"
              DelaySign="$(DelaySign)"
              DisabledWarnings="$(NoWarn)"
              DocumentationFile="@(DocFileItem)"
              EmitDebugInformation="$(DebugSymbols)"
              KeyContainer="$(KeyContainerName)"
              KeyFile="$(KeyOriginatorFile)"
              LangVersion="$(LangVersion)"
              MainEntryPoint="$(StartupObject)"
              NoConfig="true"
              NoLogo="$(NoLogo)"
              NoStandardLib="$(NoStdLib)"
              Optimize="$(Optimize)"
              OutputAssembly="@(IntermediateAssembly)"
              References="@(ReferencePath)"
              Resources="@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile)"
              ResponseFiles="$(CompilerResponseFile)"
              Sources="@(Compile)"
              TargetType="$(OutputType)"
              ToolPath="$(McsToolPath)"
              TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
              WarningLevel="$(WarningLevel)"
              Win32Icon="$(ApplicationIcon)"
              Win32Resource="$(Win32Resource)" />
    </Target>
	
</Project>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -