Skip to content
代码片段 群组 项目
未验证 提交 1d765807 编辑于 作者: Fredric Silberberg's avatar Fredric Silberberg
浏览文件

Revert workspaces msbuild changes.

上级 74c6ccfe
No related branches found
No related tags found
无相关合并请求
......@@ -473,7 +473,6 @@ private void SaveDocumentText(DocumentId id, string fullPath, SourceText newText
try
{
var dir = Path.GetDirectoryName(fullPath);
Debug.Assert(dir != null);
if (!Directory.Exists(dir))
{
Directory.CreateDirectory(dir);
......
......@@ -34,7 +34,7 @@ public async Task<IProjectFile> LoadProjectFileAsync(string path, ProjectBuildMa
return this.CreateProjectFile(project, buildManager, log);
}
public static IProjectFileLoader? GetLoaderForProjectFileExtension(HostWorkspaceServices workspaceServices, string extension)
public static IProjectFileLoader GetLoaderForProjectFileExtension(HostWorkspaceServices workspaceServices, string extension)
{
return workspaceServices.FindLanguageServices<IProjectFileLoader>(
d => d.GetEnumerableMetadata<string>("ProjectFileExtension").Any(e => string.Equals(e, extension, StringComparison.OrdinalIgnoreCase)))
......
......@@ -5,7 +5,7 @@
<OutputType>Library</OutputType>
<RootNamespace>Microsoft.CodeAnalysis</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworks>net6.0;net472</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net472</TargetFrameworks>
<DefineConstants>$(DefineConstants);WORKSPACE_MSBUILD</DefineConstants>
<!-- NuGet -->
<IsPackable>true</IsPackable>
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册