-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSharpScriptRunner.csproj
More file actions
70 lines (64 loc) · 2.5 KB
/
CSharpScriptRunner.csproj
File metadata and controls
70 lines (64 loc) · 2.5 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
68
69
70
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyTitle>C# Script Runner</AssemblyTitle>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<DisableWinExeOutputInference>true</DisableWinExeOutputInference>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<ReleaseTag>dev</ReleaseTag>
<OutDir>bin/x64/bin</OutDir>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="Templates/**/*.*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Features" Version="4.1.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.1.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.1.0" />
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
<PackageReference Include="NuGet.Common" Version="6.1.0" />
<PackageReference Include="NuGet.Configuration" Version="6.1.0" />
<PackageReference Include="NuGet.Packaging" Version="6.1.0" />
<PackageReference Include="NuGet.Protocol" Version="6.1.0" />
<PackageReference Include="NuGet.Resolver" Version="6.1.0" />
<PackageReference Include="System.IO.FileSystem.Primitives" Version="4.3.0" />
<PackageReference Include="System.Text.Encoding.Extensions" Version="4.3.0" />
<PackageReference Include="Terminal.Gui" Version="1.5.0" />
</ItemGroup>
<Target Name="GenerateBuildInfo" BeforeTargets="CoreCompile">
<PropertyGroup>
<BuildInfoFile>$(IntermediateOutputPath)BuildInfo.cs</BuildInfoFile>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier)' != ''">
<MyTextLines>
namespace CSharpScriptRunner
{
static class BuildInfo
{
public const string RuntimeIdentifier = "$(RuntimeIdentifier)"%3B
public const string Configuration = "$(Configuration)"%3B
public const string ReleaseTag = "$(ReleaseTag)"%3B
}
}
</MyTextLines>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier)' == ''">
<MyTextLines>
namespace CSharpScriptRunner
{
static class BuildInfo
{
public const string RuntimeIdentifier = "win-x64"%3B
public const string Configuration = "$(Configuration)"%3B
public const string ReleaseTag = "$(ReleaseTag)"%3B
}
}
</MyTextLines>
</PropertyGroup>
<WriteLinesToFile File="$(BuildInfoFile)" Overwrite="true" Lines="$(MyTextLines)" />
<ItemGroup>
<Compile Include="$(BuildInfoFile)" />
</ItemGroup>
</Target>
</Project>