Skip to content

Commit

Permalink
Compile as a DLL so Main does not need to exist, and allow use of `un…
Browse files Browse the repository at this point in the history
…safe` in test inputs
  • Loading branch information
sharwell committed Mar 29, 2015
1 parent 746e551 commit 4ee468e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ private static Project CreateProject(string[] sources, string language = Languag
var solution = new AdhocWorkspace()
.CurrentSolution
.AddProject(projectId, TestProjectName, TestProjectName, language)
.WithProjectCompilationOptions(projectId, new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, allowUnsafe: true))
.AddMetadataReference(projectId, CorlibReference)
.AddMetadataReference(projectId, SystemReference)
.AddMetadataReference(projectId, SystemCoreReference)
Expand Down

0 comments on commit 4ee468e

Please sign in to comment.