int ICompilerOptionsHostObject.SetCompilerOptions(string compilerOptions, out bool supported)
        {
#pragma warning disable CS0618 // Type or member is obsolete (Legacy API that cannot be changed)
            VisualStudioProjectOptionsProcessor.SetCommandLine(compilerOptions);
#pragma warning restore CS0618
            supported = true;
            return(VSConstants.S_OK);
        }
Esempio n. 2
0
        public virtual void Disconnect()
        {
            _batchScopeCreator.StopTrackingProject(VisualStudioProject);

            VisualStudioProjectOptionsProcessor?.Dispose();
            ProjectCodeModel.OnProjectClosed();
            VisualStudioProject.RemoveFromWorkspace();

            // Unsubscribe IVsHierarchyEvents
            DisconnectHierarchyEvents();
        }
Esempio n. 3
0
 public void SetMainClass(string fullyQualifiedClassName)
 {
     VisualStudioProjectOptionsProcessor.SetMainTypeName(fullyQualifiedClassName);
 }
Esempio n. 4
0
 public void SetOutputFileType(OutputFileType fileType)
 {
     VisualStudioProjectOptionsProcessor.SetOutputFileType(fileType);
 }
Esempio n. 5
0
 int ICompilerOptionsHostObject.SetCompilerOptions(string compilerOptions, out bool supported)
 {
     VisualStudioProjectOptionsProcessor.SetCommandLine(compilerOptions);
     supported = true;
     return(VSConstants.S_OK);
 }