Skip to content

Commit

Permalink
Sample that shows how to build two EXEs to a single directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericstj committed May 16, 2018
1 parent 3e49a80 commit 03e12a0
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
15 changes: 15 additions & 0 deletions roslynSample/compilers/compilers.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net46</TargetFramework>
<!-- don't include this project's output -->
<CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory>
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\csc\csc.csproj" />
<ProjectReference Include="..\vbc\vbc.csproj" />
</ItemGroup>

</Project>
12 changes: 12 additions & 0 deletions roslynSample/csc/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace csc
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
12 changes: 12 additions & 0 deletions roslynSample/csc/csc.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net46</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="2.8.0" />
</ItemGroup>

</Project>
12 changes: 12 additions & 0 deletions roslynSample/vbc/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace vbc
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
12 changes: 12 additions & 0 deletions roslynSample/vbc/vbc.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net46</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="2.8.0" />
</ItemGroup>

</Project>

0 comments on commit 03e12a0

Please sign in to comment.