包含: - furniture-3d-system:Next.js 16 全栈应用(资产中心、产品管理、3D装配动画) - autocad-plugin:AutoCAD 家具导出插件源码 - 资产中心改造:编辑弹窗化、删除功能、Toast反馈、自定义Select组件 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
89 lines
3.6 KiB
XML
89 lines
3.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net48</TargetFramework>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<LangVersion>10.0</LangVersion>
|
|
<Nullable>enable</Nullable>
|
|
<UseWindowsForms>true</UseWindowsForms>
|
|
<UseWPF>true</UseWPF>
|
|
|
|
<!-- AutoCAD 2024 插件配置 -->
|
|
<AssemblyName>FurnitureExporter</AssemblyName>
|
|
<RootNamespace>FurnitureExporter</RootNamespace>
|
|
<Version>2.4.0</Version>
|
|
<Authors>Furniture 3D System</Authors>
|
|
<Description>家具 3D 模型导出插件 - 导出 GLB 模型和五金件位置数据</Description>
|
|
|
|
<!-- 不复制 AutoCAD 引用到输出目录(运行时由 AutoCAD 提供) -->
|
|
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
|
|
|
|
<!-- 禁止警告 -->
|
|
<NoWarn>$(NoWarn);CS0618;MSB3270</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
AutoCAD 安装路径自动检测
|
|
优先级:
|
|
1. 环境变量 ACAD_PATH
|
|
2. 常见安装路径
|
|
-->
|
|
<PropertyGroup>
|
|
<!-- 从环境变量获取,如果未设置则尝试常见路径 -->
|
|
<AcadPath Condition="'$(ACAD_PATH)' != ''">$(ACAD_PATH)</AcadPath>
|
|
<AcadPath Condition="'$(AcadPath)' == '' AND Exists('C:\Program Files\Autodesk\AutoCAD 2024\accoremgd.dll')">C:\Program Files\Autodesk\AutoCAD 2024</AcadPath>
|
|
<AcadPath Condition="'$(AcadPath)' == '' AND Exists('D:\Program Files\Autodesk\AutoCAD 2024\accoremgd.dll')">D:\Program Files\Autodesk\AutoCAD 2024</AcadPath>
|
|
<AcadPath Condition="'$(AcadPath)' == '' AND Exists('E:\Program Files\Autodesk\AutoCAD 2024\accoremgd.dll')">E:\Program Files\Autodesk\AutoCAD 2024</AcadPath>
|
|
<AcadPath Condition="'$(AcadPath)' == '' AND Exists('C:\Autodesk\AutoCAD 2024\accoremgd.dll')">C:\Autodesk\AutoCAD 2024</AcadPath>
|
|
<AcadPath Condition="'$(AcadPath)' == '' AND Exists('D:\Autodesk\AutoCAD 2024\accoremgd.dll')">D:\Autodesk\AutoCAD 2024</AcadPath>
|
|
</PropertyGroup>
|
|
|
|
<!-- AutoCAD .NET API 引用 -->
|
|
<ItemGroup Condition="'$(AcadPath)' != ''">
|
|
<Reference Include="accoremgd">
|
|
<HintPath>$(AcadPath)\accoremgd.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="acdbmgd">
|
|
<HintPath>$(AcadPath)\acdbmgd.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="acmgd">
|
|
<HintPath>$(AcadPath)\acmgd.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="AcWindows">
|
|
<HintPath>$(AcadPath)\AcWindows.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<!-- BREP API (BoundaryRepresentation) -->
|
|
<Reference Include="AcDbMgdBrep">
|
|
<HintPath>$(AcadPath)\AcDbMgdBrep.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
<!-- 无需额外 NuGet 包,使用纯 .NET Framework 4.8 和 AutoCAD 自带库 -->
|
|
<ItemGroup>
|
|
<Compile Remove="FurnitureExporter.Tests\**\*.cs" />
|
|
<EmbeddedResource Remove="FurnitureExporter.Tests\**\*" />
|
|
<None Remove="FurnitureExporter.Tests\**\*" />
|
|
</ItemGroup>
|
|
|
|
<!-- 使用 AutoCAD 自带的 Newtonsoft.Json -->
|
|
<ItemGroup Condition="'$(AcadPath)' != ''">
|
|
<Reference Include="Newtonsoft.Json">
|
|
<HintPath>$(AcadPath)\Newtonsoft.Json.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
<!-- 编译前检查 -->
|
|
<Target Name="CheckAcadPath" BeforeTargets="Build">
|
|
<Error Condition="'$(AcadPath)' == ''"
|
|
Text="找不到 AutoCAD 2024 安装路径!请设置环境变量 ACAD_PATH 指向 AutoCAD 2024 安装目录,例如:
 set ACAD_PATH=D:\Program Files\Autodesk\AutoCAD 2024
 dotnet build" />
|
|
<Message Importance="High" Text="使用 AutoCAD 路径: $(AcadPath)" />
|
|
</Target>
|
|
|
|
</Project>
|