You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

180 lines
7.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project>
  3. <Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />
  4. <PropertyGroup>
  5. <TargetFramework>net472</TargetFramework>
  6. <RootNamespace>ICSharpCode.ILSpy.AddIn</RootNamespace>
  7. <Company>IC#Code</Company>
  8. <Description>ILSpy</Description>
  9. <Version>1.7.1.0</Version>
  10. <FileVersion>1.7.1.0</FileVersion>
  11. <LangVersion>9.0</LangVersion>
  12. <EnableDefaultItems>False</EnableDefaultItems>
  13. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  14. <DefineConstants>TRACE;VSADDIN;VS2022</DefineConstants>
  15. <SignAssembly>True</SignAssembly>
  16. <AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>
  17. <NoWarn>
  18. MSB3277;<!-- this is due to Visual Studio package references weirdness, see https://github.com/dotnet/roslyn/discussions/49787 -->
  19. VSSDK1009
  20. </NoWarn>
  21. </PropertyGroup>
  22. <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
  23. <DebugType>full</DebugType>
  24. <DebugSymbols>true</DebugSymbols>
  25. </PropertyGroup>
  26. <PropertyGroup Condition="'$(Configuration)' == 'Release'">
  27. <DebugType>pdbonly</DebugType>
  28. <DebugSymbols>true</DebugSymbols>
  29. </PropertyGroup>
  30. <Import Project="..\packages.props" />
  31. <ItemGroup>
  32. <PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.0.31902.203" />
  33. <PackageReference Include="Microsoft.CodeAnalysis" Version="4.0.1" />
  34. <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" />
  35. <PackageReference Include="Microsoft.VisualStudio.LanguageServices" Version="4.0.1" />
  36. <PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.6.2164">
  37. <PrivateAssets>all</PrivateAssets>
  38. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  39. </PackageReference>
  40. <PackageReference Include="Mono.Cecil" Version="$(MonoCecilVersion)" />
  41. </ItemGroup>
  42. <ItemGroup>
  43. <PackageReference Include="TunnelVisionLabs.ReferenceAssemblyAnnotator" Version="1.0.0-alpha.160" PrivateAssets="all" />
  44. <!-- Specifies the version of Microsoft.NETCore.App.Ref to obtain nullability information from. -->
  45. <PackageDownload Include="Microsoft.NETCore.App.Ref" Version="[6.0.0]" />
  46. </ItemGroup>
  47. <ItemGroup>
  48. <Compile Include="..\ICSharpCode.Decompiler\Metadata\AssemblyReferences.cs" Link="Decompiler\AssemblyReferences.cs" />
  49. <Compile Include="..\ICSharpCode.Decompiler\Metadata\DotNetCorePathFinder.cs" Link="Decompiler\DotNetCorePathFinder.cs" />
  50. <Compile Include="..\ICSharpCode.Decompiler\Metadata\LightJson\JsonArray.cs" Link="Decompiler\LightJson\JsonArray.cs" />
  51. <Compile Include="..\ICSharpCode.Decompiler\Metadata\LightJson\JsonObject.cs" Link="Decompiler\LightJson\JsonObject.cs" />
  52. <Compile Include="..\ICSharpCode.Decompiler\Metadata\LightJson\JsonValue.cs" Link="Decompiler\LightJson\JsonValue.cs" />
  53. <Compile Include="..\ICSharpCode.Decompiler\Metadata\LightJson\JsonValueType.cs" Link="Decompiler\LightJson\JsonValueType.cs" />
  54. <Compile Include="..\ICSharpCode.Decompiler\Metadata\LightJson\Serialization\JsonParseException.cs" Link="Decompiler\LightJson\Serialization\JsonParseException.cs" />
  55. <Compile Include="..\ICSharpCode.Decompiler\Metadata\LightJson\Serialization\JsonReader.cs" Link="Decompiler\LightJson\Serialization\JsonReader.cs" />
  56. <Compile Include="..\ICSharpCode.Decompiler\Metadata\LightJson\Serialization\TextPosition.cs" Link="Decompiler\LightJson\Serialization\TextPosition.cs" />
  57. <Compile Include="..\ICSharpCode.Decompiler\Metadata\LightJson\Serialization\TextScanner.cs" Link="Decompiler\LightJson\Serialization\TextScanner.cs" />
  58. <Compile Include="..\ICSharpCode.Decompiler\Metadata\UniversalAssemblyResolver.cs" Link="UniversalAssemblyResolver.cs" />
  59. <Compile Include="..\ICSharpCode.Decompiler\Util\EmptyList.cs" Link="Decompiler\EmptyList.cs" />
  60. <Compile Include="..\ILSpy\NativeMethods.cs" Link="NativeMethods.cs" />
  61. <Compile Include="Decompiler\Dummy.cs" />
  62. <Compile Include="Properties\AssemblyInfo.cs" />
  63. </ItemGroup>
  64. <PropertyGroup>
  65. <ILSpyBuildPathX64>..\ILSpy\bin\$(Configuration)\net6.0-windows\win-x64\publish\fwdependent\</ILSpyBuildPathX64>
  66. <ILSpyBuildPathArm64>..\ILSpy\bin\$(Configuration)\net6.0-windows\win-arm64\publish\fwdependent\</ILSpyBuildPathArm64>
  67. </PropertyGroup>
  68. <Target Name="IncludeILSpyDistributionInVSIXSubFolder" AfterTargets="ResolveProjectReferences">
  69. <ItemGroup>
  70. <VSIXSourceItem Include="$(ILSpyBuildPathX64)zh-Hans\ILSpy.resources.dll;$(ILSpyBuildPathX64)zh-Hans\ILSpy.ReadyToRun.Plugin.resources.dll;">
  71. <VSIXSubPath>\x64\ILSpy\zh-Hans\</VSIXSubPath>
  72. </VSIXSourceItem>
  73. <VSIXSourceItem Include="$(ILSpyBuildPathX64)*.dll;$(ILSpyBuildPathX64)ILSpy.exe;$(ILSpyBuildPathX64)*.json">
  74. <VSIXSubPath>\x64\ILSpy</VSIXSubPath>
  75. </VSIXSourceItem>
  76. <VSIXSourceItem Include="$(ILSpyBuildPathArm64)zh-Hans\ILSpy.resources.dll;$(ILSpyBuildPathArm64)zh-Hans\ILSpy.ReadyToRun.Plugin.resources.dll;">
  77. <VSIXSubPath>\arm64\ILSpy\zh-Hans\</VSIXSubPath>
  78. </VSIXSourceItem>
  79. <VSIXSourceItem Include="$(ILSpyBuildPathArm64)*.dll;$(ILSpyBuildPathArm64)ILSpy.exe;$(ILSpyBuildPathArm64)*.json">
  80. <VSIXSubPath>\arm64\ILSpy</VSIXSubPath>
  81. </VSIXSourceItem>
  82. </ItemGroup>
  83. </Target>
  84. <ItemGroup>
  85. <Content Include="$(OutputPath)Mono.Cecil.dll">
  86. <IncludeInVSIX>true</IncludeInVSIX>
  87. <VSIXSubPath>\</VSIXSubPath>
  88. </Content>
  89. <Content Include="ILSpy-Large.ico">
  90. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  91. <IncludeInVSIX>true</IncludeInVSIX>
  92. </Content>
  93. <Content Include="Resources\Images.png" />
  94. <Content Include="Resources\Package.ico" />
  95. </ItemGroup>
  96. <ItemGroup>
  97. <None Include="ILSpyAddIn.en-US.vsct">
  98. <SubType>Designer</SubType>
  99. </None>
  100. <None Include="ILSpyAddIn.vsct">
  101. <SubType>Designer</SubType>
  102. </None>
  103. <None Include="ILSpyAddIn.zh-Hans.vsct">
  104. <SubType>Designer</SubType>
  105. </None>
  106. <None Include="source.extension.vsixmanifest.template" />
  107. <None Include="source.extension.vsixmanifest">
  108. <SubType>Designer</SubType>
  109. </None>
  110. </ItemGroup>
  111. <ItemGroup>
  112. <Content Include="zh-Hans\extension.vsixlangpack">
  113. <IncludeInVSIX>true</IncludeInVSIX>
  114. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  115. </Content>
  116. <VSCTCompile Include="ILSpyAddIn.en-US.vsct">
  117. <ResourceName>Menus.ctmenu</ResourceName>
  118. <SubType>Designer</SubType>
  119. <DependentUpon>ILSpyAddIn.vsct</DependentUpon>
  120. </VSCTCompile>
  121. <VSCTCompile Include="ILSpyAddIn.zh-Hans.vsct">
  122. <ResourceName>Menus.ctmenu</ResourceName>
  123. <SubType>Designer</SubType>
  124. <DependentUpon>ILSpyAddIn.vsct</DependentUpon>
  125. </VSCTCompile>
  126. </ItemGroup>
  127. <ItemGroup>
  128. <None Include="Key.snk" />
  129. </ItemGroup>
  130. <ItemGroup>
  131. <None Include="Properties\launchSettings.json" />
  132. </ItemGroup>
  133. <ItemGroup>
  134. <Content Include="..\doc\license.txt" Link="license.txt">
  135. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  136. <IncludeInVSIX>true</IncludeInVSIX>
  137. </Content>
  138. </ItemGroup>
  139. <PropertyGroup>
  140. <UseCodebase>true</UseCodebase>
  141. <RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
  142. <RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
  143. <Product>ILSpy.AddIn for Visual Studio 2022</Product>
  144. </PropertyGroup>
  145. <Import Project="..\ILSpy.AddIn.Shared\ILSpy.AddIn.Shared.projitems" Label="Shared" />
  146. <Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />
  147. <Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="Exists('$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets')" />
  148. <ItemGroup>
  149. <Compile Update="..\ILSpy.AddIn.Shared\Resources.Designer.cs">
  150. <DesignTime>True</DesignTime>
  151. </Compile>
  152. </ItemGroup>
  153. <ItemGroup>
  154. <Folder Include="Resources\" />
  155. </ItemGroup>
  156. </Project>