diff --git a/src/VisualStudio/Core/Def/Implementation/ProjectSystem/CPS/IWorkspaceProjectContext.cs b/src/VisualStudio/Core/Def/Implementation/ProjectSystem/CPS/IWorkspaceProjectContext.cs index c4f85e677e0e9da3b44fc9fd54bbc005b4512b46..52fdb3316f919870e5faab0ee99192a47f5affab 100644 --- a/src/VisualStudio/Core/Def/Implementation/ProjectSystem/CPS/IWorkspaceProjectContext.cs +++ b/src/VisualStudio/Core/Def/Implementation/ProjectSystem/CPS/IWorkspaceProjectContext.cs @@ -2,6 +2,8 @@ using System; using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; using Microsoft.CodeAnalysis; namespace Microsoft.VisualStudio.LanguageServices.ProjectSystem @@ -36,6 +38,8 @@ internal interface IWorkspaceProjectContext : IDisposable void RemoveSourceFile(string filePath); void AddAdditionalFile(string filePath, bool isInCurrentContext = true); void RemoveAdditionalFile(string filePath); + void AddDynamicFile(string filePath, IEnumerable folderNames = null); + void RemoveDynamicFile(string fullPath); void SetRuleSetFile(string filePath); void StartBatch(); diff --git a/src/VisualStudio/Core/Impl/ProjectSystem/CPS/CPSProject_IWorkspaceProjectContext.cs b/src/VisualStudio/Core/Impl/ProjectSystem/CPS/CPSProject_IWorkspaceProjectContext.cs index 7a72c218fd4e7d2079614cd5b3df79c5de415747..9ea80f2d5c3592be491ced347a4848cca98b746b 100644 --- a/src/VisualStudio/Core/Impl/ProjectSystem/CPS/CPSProject_IWorkspaceProjectContext.cs +++ b/src/VisualStudio/Core/Impl/ProjectSystem/CPS/CPSProject_IWorkspaceProjectContext.cs @@ -101,7 +101,7 @@ public string BinOutputPath // Compute the ref path based on the non-ref path. Ideally this should come from the // project system but we don't have a way to fetch that. - _visualStudioProject.OutputRefFilePath = + _visualStudioProject.OutputRefFilePath = Path.Combine(Path.GetDirectoryName(_visualStudioProject.OutputFilePath), "ref", Path.GetFileName(_visualStudioProject.OutputFilePath)); @@ -184,6 +184,14 @@ public void RemoveAdditionalFile(string filePath) _visualStudioProject.RemoveAdditionalFile(filePath); } + public void AddDynamicFile(string filePath, IEnumerable folderNames = null) + { + } + + public void RemoveDynamicFile(string fullPath) + { + } + public void SetRuleSetFile(string filePath) { // This is now a no-op: we also recieve the rule set file through SetOptions, and we'll just use that one @@ -201,7 +209,7 @@ public void EndBatch() Contract.ThrowIfFalse(_batchScopes.TryDequeue(out var scope)); scope.Dispose(); } - + internal VisualStudioProject GetProject_TestOnly() { return _visualStudioProject;