forked from nikhilk/scriptsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScriptSharp.targets
More file actions
67 lines (60 loc) · 2.7 KB
/
Copy pathScriptSharp.targets
File metadata and controls
67 lines (60 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!--
*******************************************************************************
ScriptSharp.targets
Defines the steps in the standard build process specific for Script# projects.
Copyright (C) 2012. Script# Project. All rights reserved.
*******************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="ScriptCompilerTask" AssemblyFile="ScriptSharp.Build.dll" />
<UsingTask TaskName="ResXCodeGeneratorTask" AssemblyFile="ScriptSharp.Build.dll" />
<PropertyGroup>
<DebugSymbols>true</DebugSymbols>
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
<AutoUnifyAssemblyReferences>false</AutoUnifyAssemblyReferences>
<BuildingProject>true</BuildingProject>
<UseHostCompilerIfAvailable>false</UseHostCompilerIfAvailable>
<LangVersion Condition="'$(GenerateScript)' == 'True'">ISO-2</LangVersion>
<NoStdLib>True</NoStdLib>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib, Version=0.7.0.0, Culture=neutral, PublicKeyToken=8fc0e3af5abcb6c4, processorArchitecture=MSIL">
<HintPath>$(MSBuildThisFileDirectory)mscorlib.dll</HintPath>
</Reference>
<GeneratedResourceCode Include="$(IntermediateOutputPath)Resources.g.cs" />
</ItemGroup>
<Target Name="BuildScript">
<ScriptCompilerTask
Sources="@(Compile)"
Resources="@(EmbeddedResource)"
References="@(ReferencePath);@(ReferenceDependencyPaths)"
Defines="$(DefineConstants)"
OutputPath="$(OutputPath)"
DeploymentPath="$(DeploymentPath)"
LocaleSubFolders="$(LocaleSubFolders)"
ConfigSubFolders="$(ConfigSubFolders)"
Template="$(ScriptTemplate)"
CSharpAssembly="@(IntermediateAssembly)"
DocumentationFile="$(DocumentationFile)"
SuppressDocumentation="$(SuppressDocumentation)"
ProjectPath="$(MSBuildProjectFullPath)">
<Output TaskParameter="Scripts" ItemName="Scripts" />
</ScriptCompilerTask>
</Target>
<Target Name="GenerateResourcesCode" Inputs="@(EmbeddedResource)" Outputs="@(GeneratedResourceCode)">
<ResXCodeGeneratorTask
Resources="@(EmbeddedResource)"
GeneratedCode="@(GeneratedResourceCode)"
Namespace="$(RootNamespace)" />
<ItemGroup>
<Compile Include="@(GeneratedResourceCode)" />
</ItemGroup>
</Target>
<PropertyGroup>
<BuildDependsOn Condition="'$(GenerateScript)' == 'True'">$(BuildDependsOn);BuildScript</BuildDependsOn>
<CompileDependsOn Condition="'$(GenerateResources)' == 'True'">GenerateResourcesCode;$(CompileDependsOn)</CompileDependsOn>
</PropertyGroup>
</Project>