-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
CSharpProjectShim.ICSInputSet.cs
103 lines (83 loc) · 3.5 KB
/
CSharpProjectShim.ICSInputSet.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.IO;
using Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim.Interop;
namespace Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim
{
internal partial class CSharpProjectShim : ICSInputSet
{
public ICSCompiler GetCompiler()
{
throw new NotImplementedException();
}
public void AddSourceFile(string filename)
{
// Nothing to do here. We watch addition/removal of source files via the ICSharpProjectSite methods.
}
public void RemoveSourceFile(string filename)
{
// Nothing to do here. We watch addition/removal of source files via the ICSharpProjectSite methods.
}
public void RemoveAllSourceFiles()
{
throw new NotImplementedException();
}
public void AddResourceFile(string filename, string ident, bool embed, bool vis)
{
throw new NotImplementedException();
}
public void RemoveResourceFile(string filename, string ident, bool embed, bool vis)
{
throw new NotImplementedException();
}
public void SetWin32Resource(string filename)
{
// This file is used only during emit. Since we no longer use our in-proc workspace to emit, we can ignore this value.
}
public void SetOutputFileName(string filename)
{
VisualStudioProject.IntermediateOutputFilePath = filename;
if (filename != null)
{
VisualStudioProject.AssemblyName = Path.GetFileNameWithoutExtension(filename);
}
RefreshBinOutputPath();
}
public void SetOutputFileType(OutputFileType fileType)
{
VisualStudioProjectOptionsProcessor.SetOutputFileType(fileType);
}
public void SetImageBase(uint imageBase)
{
// This option is used only during emit. Since we no longer use our in-proc workspace to emit, we can ignore this value.
}
public void SetMainClass(string fullyQualifiedClassName)
{
VisualStudioProjectOptionsProcessor.SetMainTypeName(fullyQualifiedClassName);
}
public void SetWin32Icon(string iconFileName)
{
// This option is used only during emit. Since we no longer use our in-proc workspace to emit, we can ignore this value.
}
public void SetFileAlignment(uint align)
{
// This option is used only during emit. Since we no longer use our in-proc workspace to emit, we can ignore this value.
}
public void SetImageBase2(ulong imageBase)
{
// This option is used only during emit. Since we no longer use our in-proc workspace to emit, we can ignore this value.
}
public void SetPdbFileName(string filename)
{
// This option is used only during emit. Since we no longer use our in-proc workspace to emit, we can ignore this value.
}
public string GetWin32Resource()
{
throw new NotImplementedException();
}
public void SetWin32Manifest(string manifestFileName)
{
// This option is used only during emit. Since we no longer use our in-proc workspace to emit, we can ignore this value.
}
}
}