Compile csproj dynamically
C#
4
Posts
2
Posters
0
Views
1
Watching
-
How to compile a csproj dynamically. I checked CompileAssemblyFromFile method in Microsoft.CSharp.CSharpCodeProvider but it accepts only cs files. Thanks in advance
csproj files are xml scripts that are executed using msbuild.exe. the MsBuild engine can be invoked from code using the Microsoft.Build.BuildEngine.Engine[^] class. Create the engine, set any properties you want to specify, and call
BuildProjectFile()
Simon
-
csproj files are xml scripts that are executed using msbuild.exe. the MsBuild engine can be invoked from code using the Microsoft.Build.BuildEngine.Engine[^] class. Create the engine, set any properties you want to specify, and call
BuildProjectFile()
Simon
-
No problem. :)
Simon