提交 a6c76cc6 编写于 作者: T Tom Meschter

Drop resource assemblies from toolset insertion

We don't really need resource assemblies in our VS compiler toolset
insertion, so just ignore them rather than making
Roslyn.BuildDevDivInsertionFiles.exe understand them properly.
上级 3a9f9378
......@@ -1031,8 +1031,14 @@ Public Class BuildDevDivInsertionFiles
' First copy over all the files from the compilers toolset.
For Each fileRelativePath In GetCompilerToolsetNuspecFiles()
Dim filePath = Path.Combine(_binDirectory, fileRelativePath)
Dim fileName = Path.GetFileName(fileRelativePath)
' Skip satellite assemblies; we don't need these for the compiler insertion
If fileName.EndsWith(".resources.dll", StringComparison.OrdinalIgnoreCase) Then
Continue For
End If
Dim filePath = Path.Combine(_binDirectory, fileRelativePath)
Dim destFilepath = Path.Combine(outputDir, fileName)
File.Copy(filePath, destFilepath)
nuspecFiles.Add(fileName)
......@@ -1149,6 +1155,10 @@ set DEVPATH=%RoslynToolsRoot%;%DEVPATH%"
Private Function GetCompilerInsertFiles() As IEnumerable(Of String)
Return GetCompilerToolsetNuspecFiles().
Select(AddressOf Path.GetFileName).
Where(Function(f)
' Skip satellite assemblies; we don't need these for the compiler insertion
Return Not f.EndsWith(".resources.dll", StringComparison.OrdinalIgnoreCase)
End Function).
Where(Function(f)
Select Case f
' These files are inserted by MSBuild setup
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册