This project is read-only.

Build Action

Topics: APIs
Apr 28, 2014 at 3:25 AM
Is it possible to set the build action of a document in a project to "none" (instead of "compile") with the Roslyn APIs?
Apr 28, 2014 at 9:21 PM
Edited Apr 28, 2014 at 9:23 PM
Roslyn is not a replacement for other VS API's for manipulation of the project system.

Roslyn does allow you to apply changes to its solution model back to the host environment, and this can have effects like adding new documents to a VS project. However, so far, Roslyn only models the source documents that are fed into the compiler, equivalent to those with the 'Compile' tags in the project file. Roslyn doesn't have a concept for documents that are not source files. Even though Roslyn has concepts and an object model with a Solution and Project's, these concepts don't always map 1-to-1 to VS concepts. A Roslyn Project typically represents the compiler inputs, and none of the other options or files that are not directly related to compilation.