-
Notifications
You must be signed in to change notification settings - Fork 1
/
dirs.proj
42 lines (34 loc) · 2.35 KB
/
dirs.proj
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
<Project Sdk="Microsoft.Build.Traversal">
<PropertyGroup>
<TraversalGlobalProperties>SolutionDir=$(MSBuildThisFileDirectory);BaseBuildFolder=$(BaseBuildFolder);BuildFolder=$(BaseBuildFolder);Configuration=$(Configuration);BuildProjectReferences=false</TraversalGlobalProperties>
<CustomBeforeTraversalProps>$(MSBuildThisFileDirectory)Directory.Build.props</CustomBeforeTraversalProps>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="SampleJetBA\SampleJetBA.csproj" Properties="Platform=Any CPU;SelfContained=true;RuntimeIdentifier=win-$(Platform);IsPublishable=true" Targets="Restore;Build;Publish"/>
<ProjectReference Include="Setup\Setup.wixproj" Properties="Platform=$(Platform)" Targets="Restore;Build" BuildInParallel="false"/>
<ProjectReference Include="Bootstrapper\Bootstrapper.wixproj" Properties="Platform=$(Platform)" Targets="Restore;Build" BuildInParallel="false"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="TidyBuild" />
</ItemGroup>
<Target Name="WixtoolsetToPanelSwWix4PerProject" Inputs="%(ProjectReference.FullPath)" Outputs="%(ProjectReference.FullPath).never">
<PropertyGroup>
<ProjectFileContents>$([System.IO.File]::ReadAllText('%(ProjectReference.FullPath)'))</ProjectFileContents>
<ProjectFileContents>$(ProjectFileContents.Replace('WixToolset.', 'PanelSwWix4.'))</ProjectFileContents>
</PropertyGroup>
<WriteLinesToFile File="%(ProjectReference.FullPath)"
Lines="$(ProjectFileContents)"
Overwrite="true"
WriteOnlyWhenDifferent="true" />
</Target>
<Target Name="WixtoolsetToPanelSwWix4" DependsOnTargets="WixtoolsetToPanelSwWix4PerProject">
<PropertyGroup>
<JsonFileContents>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)global.json'))</JsonFileContents>
<JsonFileContents>$([System.Text.RegularExpressions.Regex]::Replace('$(JsonFileContents)', 'PanelSwWix4.*', 'PanelSwWix4.Sdk": "$(PanelSwWix4Version)",'))</JsonFileContents>
</PropertyGroup>
<WriteLinesToFile File="$(MSBuildThisFileDirectory)global.json"
Lines="$(JsonFileContents)"
Overwrite="true"/>
<XmlPoke XmlInputPath="Directory.Packages.props" Query="/Project/PropertyGroup/JetBaVersion" Value="$(JetBaVersion)-psw-wix"/>
</Target>
</Project>