Update GenerateMPACK to capture PDBs.
- VS Mac expects pdbs to sit side-by-side. #1968
This commit is contained in:
parent
ba7f955afa
commit
83c31f611f
|
|
@ -44,13 +44,12 @@
|
||||||
3. All language service binaries
|
3. All language service binaries
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
<MakeDir Directories="$(MPackIntermediateOutputPath)" Condition="!Exists('$(MPackIntermediateOutputPath)')" />
|
<MakeDir Directories="$(MPackIntermediateOutputPath)" Condition="!Exists('$(MPackIntermediateOutputPath)')" />
|
||||||
<Delete Files="$(MPackOutputPath)" Condition="Exists('$(MPackOutputPath)')" />
|
<Delete Files="$(MPackOutputPath)" Condition="Exists('$(MPackOutputPath)')" />
|
||||||
|
|
||||||
<!-- We need to resolve the language service assemblies to generate an addin.info for the mpack -->
|
<!-- We need to resolve the language service assemblies to generate an addin.info for the mpack -->
|
||||||
<XmlPeek XmlInputPath="$(MPackManifest)" Query="/ExtensionModel/Runtime/Import/@assembly">
|
<XmlPeek XmlInputPath="$(MPackManifest)" Query="/ExtensionModel/Runtime/Import/@assembly">
|
||||||
<Output TaskParameter="Result" ItemName="LanguageServiceAssemblies" />
|
<Output TaskParameter="Result" ItemName="LanguageServiceAssemblyNames" />
|
||||||
</XmlPeek>
|
</XmlPeek>
|
||||||
|
|
||||||
<!-- We need to resolve the addin dependencies to generate an addin.info for the mpack -->
|
<!-- We need to resolve the addin dependencies to generate an addin.info for the mpack -->
|
||||||
|
|
@ -61,7 +60,7 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AddinInfoLines Include="<Addin id="$(AddinId)" namespace="$(AddinNamespace)" version="$(AddinVersion)" name="$(AddinDetailedName)" author="$(Authors)" description="$(Description)" category="$(AddinCategory)">" />
|
<AddinInfoLines Include="<Addin id="$(AddinId)" namespace="$(AddinNamespace)" version="$(AddinVersion)" name="$(AddinDetailedName)" author="$(Authors)" description="$(Description)" category="$(AddinCategory)">" />
|
||||||
<AddinInfoLines Include=" <Runtime>" />
|
<AddinInfoLines Include=" <Runtime>" />
|
||||||
<AddinInfoLines Include=" <Import assembly="%(LanguageServiceAssemblies.Identity)" />" />
|
<AddinInfoLines Include=" <Import assembly="%(LanguageServiceAssemblyNames.Identity)" />" />
|
||||||
<AddinInfoLines Include=" <Import assembly="$(AddinName).dll" />" />
|
<AddinInfoLines Include=" <Import assembly="$(AddinName).dll" />" />
|
||||||
<AddinInfoLines Include=" </Runtime>" />
|
<AddinInfoLines Include=" </Runtime>" />
|
||||||
<AddinInfoLines Include=" <Dependencies>" />
|
<AddinInfoLines Include=" <Dependencies>" />
|
||||||
|
|
@ -70,10 +69,17 @@
|
||||||
<AddinInfoLines Include="</Addin>" />
|
<AddinInfoLines Include="</Addin>" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<LanguageServiceAssemblies Include="$(LanguageServiceOutputPath)%(LanguageServiceAssemblyNames.Identity)" />
|
||||||
|
<LanguageServicePDBs Include="%(LanguageServiceAssemblies.RootDir)%(Directory)%(FileName).pdb" Condition="Exists('%(LanguageServiceAssemblies.RootDir)%(Directory)%(FileName).pdb')" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- Generate the addin.info and gather sources for mpack zipping-->
|
<!-- Generate the addin.info and gather sources for mpack zipping-->
|
||||||
<WriteLinesToFile File="$(AddinInfoFilePath)" Lines="@(AddinInfoLines)" Overwrite="true" />
|
<WriteLinesToFile File="$(AddinInfoFilePath)" Lines="@(AddinInfoLines)" Overwrite="true" />
|
||||||
<Copy SourceFiles="$(LanguageServiceOutputPath)\%(LanguageServiceAssemblies.Identity)" DestinationFolder="$(MPackIntermediateOutputPath)" />
|
<Copy SourceFiles="%(LanguageServiceAssemblies.Identity)" DestinationFolder="$(MPackIntermediateOutputPath)" />
|
||||||
|
<Copy SourceFiles="%(LanguageServicePDBs.Identity)" DestinationFolder="$(MPackIntermediateOutputPath)" />
|
||||||
<Copy SourceFiles="$(AddinOutputPath)$(AddinName).dll" DestinationFolder="$(MPackIntermediateOutputPath)" />
|
<Copy SourceFiles="$(AddinOutputPath)$(AddinName).dll" DestinationFolder="$(MPackIntermediateOutputPath)" />
|
||||||
|
<Copy SourceFiles="$(AddinOutputPath)$(AddinName).pdb" DestinationFolder="$(MPackIntermediateOutputPath)" />
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<MPackFiles Include="$(MPackIntermediateOutputPath)\*" />
|
<MPackFiles Include="$(MPackIntermediateOutputPath)\*" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue