Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1148 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
4 changed files with 191 additions and 39 deletions
@ -0,0 +1,139 @@ |
|||||||
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||||
|
<!-- This file can be used to compile VB.NET applications against other .NET Framework versions --> |
||||||
|
|
||||||
|
<PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v1.0' "> |
||||||
|
<VbcToolPath>$(SystemRoot)\Microsoft.NET\Framework\v1.0.3705</VbcToolPath> |
||||||
|
<SharpDevelopUse1xCompiler>true</SharpDevelopUse1xCompiler> |
||||||
|
<SharpDevelopUseMicrosoftFramework>true</SharpDevelopUseMicrosoftFramework> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v1.1' "> |
||||||
|
<VbcToolPath>$(SystemRoot)\Microsoft.NET\Framework\v1.1.4322</VbcToolPath> |
||||||
|
<SharpDevelopUse1xCompiler>true</SharpDevelopUse1xCompiler> |
||||||
|
<SharpDevelopUseMicrosoftFramework>true</SharpDevelopUseMicrosoftFramework> |
||||||
|
|
||||||
|
<!-- Work around MsBuild problem: Microsoft.VisualBasic.targets adds NoWarn entries that --> |
||||||
|
<!-- don't exist in v1.1 when version is set to anything else than v1.0 --> |
||||||
|
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion> |
||||||
|
</PropertyGroup> |
||||||
|
<PropertyGroup Condition=" '$(SharpDevelopUse1xCompiler)' == 'true' "> |
||||||
|
<UseHostCompilerIfAvailable>false</UseHostCompilerIfAvailable> |
||||||
|
<PlatformTarget/> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<PropertyGroup Condition=" '$(TargetFrameworkVersion)' == 'v2.0' "> |
||||||
|
<SharpDevelopUseMicrosoftFramework>true</SharpDevelopUseMicrosoftFramework> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<!-- Use Microsoft's VB standard targets --> |
||||||
|
<Import Condition=" '$(SharpDevelopUseMicrosoftFramework)' == 'true' " Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" /> |
||||||
|
|
||||||
|
<!-- Override properties created by Microsoft.VisualBasic.targets --> |
||||||
|
<PropertyGroup Condition=" '$(SharpDevelopUse1xCompiler)' == 'true' "> |
||||||
|
<AssemblySearchPaths> |
||||||
|
{CandidateAssemblyFiles}; |
||||||
|
$(ReferencePath); |
||||||
|
{HintPathFromItem}; |
||||||
|
{TargetFrameworkDirectory}; |
||||||
|
{AssemblyFolders}; |
||||||
|
$(OutputPath); |
||||||
|
{GAC} |
||||||
|
</AssemblySearchPaths> |
||||||
|
|
||||||
|
<TargetFrameworkDirectory>$(VbcToolPath)</TargetFrameworkDirectory> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup Condition=" '$(SharpDevelopUse1xCompiler)' == 'true' "> |
||||||
|
<TargetFrameworkDirectoryItem Include="$(VbcToolPath)"> |
||||||
|
<InProject>false</InProject> |
||||||
|
</TargetFrameworkDirectoryItem> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<!-- GetFrameworkPaths overwrites TargetFrameworkDirectory, so modify it --> |
||||||
|
<!-- to be inactive if SharpDevelopUse1xCompiler is set. --> |
||||||
|
<Target Name="GetFrameworkPaths" DependsOnTargets="$(GetFrameworkPathsDependsOn)" Condition=" '$(SharpDevelopUseMicrosoftFramework)' == 'true' "> |
||||||
|
<Error Condition=" ('$(SharpDevelopUse1xCompiler)' == 'true') And !Exists('$(VbcToolPath)\Vbc.exe') " |
||||||
|
Text="Could not find the VB.NET compiler in $(VbcToolPath)."/> |
||||||
|
|
||||||
|
<GetFrameworkPath Condition=" '$(SharpDevelopUse1xCompiler)' != 'true' "> |
||||||
|
<Output TaskParameter="Path" PropertyName="TargetFrameworkDirectory"/> |
||||||
|
<Output TaskParameter="Path" ItemName="TargetFrameworkDirectoryItem"/> |
||||||
|
</GetFrameworkPath> |
||||||
|
|
||||||
|
<GetFrameworkSDKPath Condition=" '$(SharpDevelopUse1xCompiler)' != 'true' "> |
||||||
|
<Output TaskParameter="Path" PropertyName="TargetFrameworkSDKDirectory"/> |
||||||
|
<Output TaskParameter="Path" ItemName="TargetFrameworkSDKDirectoryItem"/> |
||||||
|
</GetFrameworkSDKPath> |
||||||
|
</Target> |
||||||
|
|
||||||
|
<!-- Redefine the Vbc target and set noconfig to false - preventing the Vbc |
||||||
|
task from passing the noconfig argument to the Vbc 1.1 compiler which does not |
||||||
|
support it --> |
||||||
|
<Target |
||||||
|
Name="CoreCompile" |
||||||
|
Inputs="$(MSBuildAllProjects); |
||||||
|
@(Compile); |
||||||
|
@(ManifestResourceWithNoCulture); |
||||||
|
$(ApplicationIcon); |
||||||
|
$(AssemblyOriginatorKeyFile); |
||||||
|
@(ManifestNonResxWithNoCultureOnDisk); |
||||||
|
@(ReferencePath); |
||||||
|
@(CompiledLicenseFile); |
||||||
|
@(EmbeddedDocumentation); |
||||||
|
@(CustomAdditionalCompileInputs)" |
||||||
|
Outputs="@(DocFileItem); |
||||||
|
@(IntermediateAssembly); |
||||||
|
$(NonExistentFile); |
||||||
|
@(CustomAdditionalCompileOutputs)" |
||||||
|
DependsOnTargets="$(CoreCompileDependsOn)" |
||||||
|
> |
||||||
|
<Vbc |
||||||
|
AdditionalLibPaths="$(AdditionalLibPaths)" |
||||||
|
AddModules="@(AddModules)" |
||||||
|
BaseAddress="$(BaseAddress)" |
||||||
|
CodePage="$(CodePage)" |
||||||
|
DebugType="$(DebugType)" |
||||||
|
DefineConstants="$(FinalDefineConstants)" |
||||||
|
DelaySign="$(DelaySign)" |
||||||
|
DisabledWarnings="$(NoWarn)" |
||||||
|
DocumentationFile="@(DocFileItem)" |
||||||
|
EmitDebugInformation="$(DebugSymbols)" |
||||||
|
ErrorReport="$(ErrorReport)" |
||||||
|
FileAlignment="$(FileAlignment)" |
||||||
|
GenerateDocumentation="$(GenerateDocumentation)" |
||||||
|
Imports="@(Import)" |
||||||
|
KeyContainer="$(KeyContainerName)" |
||||||
|
KeyFile="$(KeyOriginatorFile)" |
||||||
|
MainEntryPoint="$(StartupObject)" |
||||||
|
NoConfig="false" |
||||||
|
NoStandardLib="$(NoStdLib)" |
||||||
|
NoWarnings="$(_NoWarnings)" |
||||||
|
Optimize="$(Optimize)" |
||||||
|
OptionCompare="$(OptionCompare)" |
||||||
|
OptionExplicit="$(OptionExplicit)" |
||||||
|
OptionStrict="$(OptionStrict)" |
||||||
|
OptionStrictType="$(OptionStrictType)" |
||||||
|
OutputAssembly="@(IntermediateAssembly)" |
||||||
|
Platform="$(PlatformTarget)" |
||||||
|
References="@(ReferencePath)" |
||||||
|
RemoveIntegerChecks="$(RemoveIntegerChecks)" |
||||||
|
Resources="@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile)" |
||||||
|
ResponseFiles="$(CompilerResponseFile)" |
||||||
|
RootNamespace="$(RootNamespace)" |
||||||
|
SdkPath="$(FrameworkPathOverride)" |
||||||
|
Sources="@(Compile)" |
||||||
|
TargetCompactFramework="$(TargetCompactFramework)" |
||||||
|
TargetType="$(OutputType)" |
||||||
|
ToolPath="$(VbcToolPath)" |
||||||
|
TreatWarningsAsErrors="$(TreatWarningsAsErrors)" |
||||||
|
UseHostCompilerIfAvailable="$(UseHostCompilerIfAvailable)" |
||||||
|
Utf8Output="$(Utf8Output)" |
||||||
|
Verbosity="$(VbcVerbosity)" |
||||||
|
WarningsAsErrors="$(WarningsAsErrors)" |
||||||
|
WarningsNotAsErrors="$(WarningsNotAsErrors)" |
||||||
|
Win32Icon="$(ApplicationIcon)" |
||||||
|
Win32Resource="$(Win32Resource)" |
||||||
|
/> |
||||||
|
|
||||||
|
</Target> |
||||||
|
|
||||||
|
</Project> |
||||||
Loading…
Reference in new issue