未验证 提交 547fbc0e 编写于 作者: G Gen Lu 提交者: GitHub

Merge pull request #31254 from genlu/propertyApi

Add an API to pass additional msbuild properties to workspace
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.VisualStudio.LanguageServices.ProjectSystem
{
/// <summary>
/// A class that provides constants for common MSBuild property names.
/// </summary>
internal static class AdditionalPropertyNames
{
public const string RootNamespace = "rootnamespace";
}
}
...@@ -23,6 +23,9 @@ internal interface IWorkspaceProjectContext : IDisposable ...@@ -23,6 +23,9 @@ internal interface IWorkspaceProjectContext : IDisposable
// Options. // Options.
void SetOptions(string commandLineForOptions); void SetOptions(string commandLineForOptions);
// Other project properties.
void SetProperty(string name, string value);
// References. // References.
void AddMetadataReference(string referencePath, MetadataReferenceProperties properties); void AddMetadataReference(string referencePath, MetadataReferenceProperties properties);
void RemoveMetadataReference(string referencePath); void RemoveMetadataReference(string referencePath);
......
...@@ -133,6 +133,11 @@ public void SetOptions(string commandLineForOptions) ...@@ -133,6 +133,11 @@ public void SetOptions(string commandLineForOptions)
} }
} }
public void SetProperty(string name, string value)
{
// TODO
}
public void AddMetadataReference(string referencePath, MetadataReferenceProperties properties) public void AddMetadataReference(string referencePath, MetadataReferenceProperties properties)
{ {
referencePath = FileUtilities.NormalizeAbsolutePath(referencePath); referencePath = FileUtilities.NormalizeAbsolutePath(referencePath);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册