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);
        }
示例#2
0
        public virtual void Disconnect()
        {
            _batchScopeCreator.StopTrackingProject(VisualStudioProject);

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

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