Skip to content

Commit

Permalink
making .csproj file structure more user-friendly
Browse files Browse the repository at this point in the history
..by refactoring and commenting it
  • Loading branch information
salaros committed Jul 17, 2018
1 parent 0c23ab9 commit 56c85ca
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions src/RevitAddin.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net40;net45;net451;net452;net46;net47</TargetFrameworks>
<!-- Forcibly set platform to 'x64' and ignore architecture-related problems -->
<PlatformTarget>x64</PlatformTarget>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>

<!-- Force the project to use the legacy debugger engine -->
<DebugEngines>{351668CC-8477-4fbf-BFE3-5F1006E4DB1F}</DebugEngines>
<TargetFrameworks>
<!-- Please remove the targets you don't need in order
to exclude Revit versions your add-in won't support
use the list below for matching Revit version with .NET target -->
net40;net45;net451;net452;net46;net47
</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net40' ">
Expand All @@ -34,6 +33,14 @@
</PropertyGroup>

<PropertyGroup>
<!-- Forcibly set platform to 'x64' and ignore architecture-related problems -->
<PlatformTarget>x64</PlatformTarget>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>

<!-- Force the project to use the legacy debugger engine -->
<DebugEngines>{351668CC-8477-4fbf-BFE3-5F1006E4DB1F}</DebugEngines>

<!-- Invert the behavior of new .csproj format - exclude files by default -->
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<EnableDefaultItems>false</EnableDefaultItems>

Expand Down Expand Up @@ -155,7 +162,7 @@
</Task>
</UsingTask>

<Target Name="CopyAddinsToAppData" AfterTargets="CreateAddinManifest" Condition="'$(Configuration)' == 'Debug'" >
<Target Name="CopyAddinsToAppData" AfterTargets="CreateAddinManifest" Condition="'$(Configuration)' == 'Debug'">
<!-- Copy newly compiled add-in files to AppData folder (before starting the debugger) -->
<ItemGroup>
<AddinFiles Include="..\bin\$(Configuration)\**\*.addin" />
Expand Down

0 comments on commit 56c85ca

Please sign in to comment.