-
Notifications
You must be signed in to change notification settings - Fork 1
/
RevitParametersAddin.csproj
61 lines (50 loc) · 2.13 KB
/
RevitParametersAddin.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<RootNamespace>RevitParametersAddin</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PlatformTarget>x64</PlatformTarget>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;MSB3277</NoWarn>
</PropertyGroup>
<ItemGroup>
<None Remove="appsettings.json" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="appsettings.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Autodesk.Authentication" Version="2.0.0-beta4" />
<PackageReference Include="Autodesk.Forge" Version="1.9.9" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="RestSharp" Version="112.0.0" />
<PackageReference Include="System.Drawing.Common" Version="8.0.10" />
</ItemGroup>
<ItemGroup>
<Reference Include="RevitAPI">
<HintPath>..\..\..\..\..\Program Files\Autodesk\Revit 2025\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>..\..\..\..\..\Program Files\Autodesk\Revit 2025\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<Target Name="CopyAddins" AfterTargets="Build">
<ItemGroup>
<AddinFiles Include="$(OutputPath)\*.dll" />
<AddinFiles Include="$(ProjectDir)\*.addin" />
</ItemGroup>
<Copy SourceFiles="@(AddinFiles)" DestinationFolder="$(AppData)\Autodesk\REVIT\Addins\2025" />
</Target>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="if exist "$(AppData)\Autodesk\REVIT\Addins\2025" copy "$(ProjectDir)*.addin" "$(AppData)\Autodesk\REVIT\Addins\2025"
if exist "$(AppData)\Autodesk\REVIT\Addins\2025" copy "$(ProjectDir)$(OutputPath)*.dll" "$(AppData)\Autodesk\REVIT\Addins\2025"" />
</Target>
</Project>