addin项目添加

This commit is contained in:
GG Z
2025-09-04 22:38:49 +08:00
parent e5f139264e
commit 85435fb676
2 changed files with 1577 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<UseWPF>true</UseWPF>
<PlatformTarget>x64</PlatformTarget>
<Platforms>x64</Platforms>
<LangVersion>7.3</LangVersion>
<AssemblyTitle>Revit Addin Manager</AssemblyTitle>
<Description>Revit插件管理器提供插件的安装、卸载、启用/禁用、热重载等功能</Description>
<Company>ShrlAlgo</Company>
<Product>RevitAddinManager</Product>
<Copyright>Copyright © 2024</Copyright>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<DefineConstants>REVIT_API_AVAILABLE</DefineConstants>
</PropertyGroup>
<!-- 尝试从不同路径引用Revit API -->
<ItemGroup Condition="Exists('..\libs\2020\RevitAPI.dll')">
<Reference Include="RevitAPI">
<HintPath>..\libs\2020\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>..\libs\2020\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<!-- 备用路径从Revit安装目录引用 -->
<ItemGroup Condition="!Exists('..\libs\2020\RevitAPI.dll') AND Exists('C:\Program Files\Autodesk\Revit 2020\RevitAPI.dll')">
<Reference Include="RevitAPI">
<HintPath>C:\Program Files\Autodesk\Revit 2020\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>C:\Program Files\Autodesk\Revit 2020\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<!-- 如果找不到Revit API则移除预编译指令 -->
<PropertyGroup Condition="!Exists('..\libs\2020\RevitAPI.dll') AND !Exists('C:\Program Files\Autodesk\Revit 2020\RevitAPI.dll')">
<DefineConstants></DefineConstants>
</PropertyGroup>
<!-- NuGet 包引用 -->
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Text.Json" Version="6.0.9" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.122" />
</ItemGroup>
<!-- 项目引用 -->
<ItemGroup>
<ProjectReference Include="..\ShrlAlgoToolkit.Core\ShrlAlgoToolkit.Core.csproj" />
<ProjectReference Include="..\ShrlAlgoToolkit.Mvvm\ShrlAlgoToolkit.Mvvm.csproj" />
</ItemGroup>
<!-- 内容文件 -->
<ItemGroup>
<Content Include="RevitAddinManager.addin">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<!-- 排除默认的AssemblyInfo.cs -->
<ItemGroup>
<Compile Remove="Properties\AssemblyInfo.cs" />
</ItemGroup>
</Project>

File diff suppressed because it is too large Load Diff