Skip to content

Commit

Permalink
Merge pull request #26 from specklesystems/sdk-style-proj
Browse files Browse the repository at this point in the history
feat: move Runner to sdk style proj
  • Loading branch information
teocomi authored Mar 9, 2023
2 parents 43b07dc + 0e8df07 commit 2ac5268
Show file tree
Hide file tree
Showing 18 changed files with 219 additions and 655 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build
on:
push:
tags:
- '/^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/'
- '*.*.*'

jobs:

Expand All @@ -28,7 +28,7 @@ jobs:
dotnet-version: 6.0.x

- name: Build
run: dotnet publish .\xUnitRevitUtils.sln -c Release -p:Version=${{ github.ref_name }}"
run: dotnet publish .\xUnitRevitUtils.sln -c Release -p:Version=${{ github.ref_name }}

- name: Publish
run: dotnet nuget push ".\artifacts\*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_APIKEY }} -n --skip-duplicate
Expand Down
72 changes: 35 additions & 37 deletions xUnitRevit.sln
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,21 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Extra", "Extra", "{B01105F5-963D-42C3-BFA7-2D26AC375D07}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "xUnitRevitRunner", "xUnitRevitRunner", "{CF685C5E-70E1-40C5-BCFD-1E27695F0364}"
ProjectSection(SolutionItems) = preProject
xUnitRevitRunner\Directory.Build.props = xUnitRevitRunner\Directory.Build.props
EndProjectSection
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "xUnitRevitRunnerShared", "xUnitRevitRunner\xUnitRevitRunnerShared\xUnitRevitRunnerShared.shproj", "{2B4F4767-CF26-485B-ADB3-751250EB1CDB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xUnitRevitRunner2023", "xUnitRevitRunner\xUnitRevitRunner2023\xUnitRevitRunner2023.csproj", "{748653C4-D89A-4DBD-B190-6F221FEC980B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xUnitRevitRunner2019", "xUnitRevitRunner\xUnitRevitRunner2019\xUnitRevitRunner2019.csproj", "{E3A15534-FB02-4CE2-8126-22E60EB1922E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xUnitRevitRunner2022", "xUnitRevitRunner\xUnitRevitRunner2022\xUnitRevitRunner2022.csproj", "{6C7200FA-4541-4AFD-B297-6C13E29968D5}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xUnitRevitRunner2020", "xUnitRevitRunner\xUnitRevitRunner2020\xUnitRevitRunner2020.csproj", "{3782DB94-2F99-4449-B727-D5E4172964AD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xUnitRevitRunner2021", "xUnitRevitRunner\xUnitRevitRunner2021\xUnitRevitRunner2021.csproj", "{0ED80C57-6B55-4B7E-B5C1-7F94C80F3E34}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xUnitRevitRunner2021", "xUnitRevitRunner\xUnitRevitRunner2021\xUnitRevitRunner2021.csproj", "{66615756-3C3F-4A46-9C00-D6BA2493B6FA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xUnitRevitRunner2020", "xUnitRevitRunner\xUnitRevitRunner2020\xUnitRevitRunner2020.csproj", "{D15EC3E8-9387-4870-AA3B-A47432982B07}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xUnitRevitRunner2022", "xUnitRevitRunner\xUnitRevitRunner2022\xUnitRevitRunner2022.csproj", "{72816F5F-F86C-4A84-A4BB-9C05F2CD5320}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xUnitRevitRunner2019", "xUnitRevitRunner\xUnitRevitRunner2019\xUnitRevitRunner2019.csproj", "{D11AD4C7-D302-44DC-AE02-840788391FE9}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xUnitRevitRunner2023", "xUnitRevitRunner\xUnitRevitRunner2023\xUnitRevitRunner2023.csproj", "{97D93392-9484-484F-9F5F-60C5F3D67045}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -77,26 +80,28 @@ Global
{B6404BAD-9314-45F9-9F4D-A644D986FC37}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B6404BAD-9314-45F9-9F4D-A644D986FC37}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B6404BAD-9314-45F9-9F4D-A644D986FC37}.Release|Any CPU.Build.0 = Release|Any CPU
{748653C4-D89A-4DBD-B190-6F221FEC980B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{748653C4-D89A-4DBD-B190-6F221FEC980B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{748653C4-D89A-4DBD-B190-6F221FEC980B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{748653C4-D89A-4DBD-B190-6F221FEC980B}.Release|Any CPU.Build.0 = Release|Any CPU
{6C7200FA-4541-4AFD-B297-6C13E29968D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6C7200FA-4541-4AFD-B297-6C13E29968D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6C7200FA-4541-4AFD-B297-6C13E29968D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6C7200FA-4541-4AFD-B297-6C13E29968D5}.Release|Any CPU.Build.0 = Release|Any CPU
{0ED80C57-6B55-4B7E-B5C1-7F94C80F3E34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0ED80C57-6B55-4B7E-B5C1-7F94C80F3E34}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0ED80C57-6B55-4B7E-B5C1-7F94C80F3E34}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0ED80C57-6B55-4B7E-B5C1-7F94C80F3E34}.Release|Any CPU.Build.0 = Release|Any CPU
{D15EC3E8-9387-4870-AA3B-A47432982B07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D15EC3E8-9387-4870-AA3B-A47432982B07}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D15EC3E8-9387-4870-AA3B-A47432982B07}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D15EC3E8-9387-4870-AA3B-A47432982B07}.Release|Any CPU.Build.0 = Release|Any CPU
{D11AD4C7-D302-44DC-AE02-840788391FE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D11AD4C7-D302-44DC-AE02-840788391FE9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D11AD4C7-D302-44DC-AE02-840788391FE9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D11AD4C7-D302-44DC-AE02-840788391FE9}.Release|Any CPU.Build.0 = Release|Any CPU
{2B4F4767-CF26-485B-ADB3-751250EB1CDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2B4F4767-CF26-485B-ADB3-751250EB1CDB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E3A15534-FB02-4CE2-8126-22E60EB1922E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E3A15534-FB02-4CE2-8126-22E60EB1922E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E3A15534-FB02-4CE2-8126-22E60EB1922E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E3A15534-FB02-4CE2-8126-22E60EB1922E}.Release|Any CPU.Build.0 = Release|Any CPU
{3782DB94-2F99-4449-B727-D5E4172964AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3782DB94-2F99-4449-B727-D5E4172964AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3782DB94-2F99-4449-B727-D5E4172964AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3782DB94-2F99-4449-B727-D5E4172964AD}.Release|Any CPU.Build.0 = Release|Any CPU
{66615756-3C3F-4A46-9C00-D6BA2493B6FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{66615756-3C3F-4A46-9C00-D6BA2493B6FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{66615756-3C3F-4A46-9C00-D6BA2493B6FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{66615756-3C3F-4A46-9C00-D6BA2493B6FA}.Release|Any CPU.Build.0 = Release|Any CPU
{72816F5F-F86C-4A84-A4BB-9C05F2CD5320}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{72816F5F-F86C-4A84-A4BB-9C05F2CD5320}.Debug|Any CPU.Build.0 = Debug|Any CPU
{72816F5F-F86C-4A84-A4BB-9C05F2CD5320}.Release|Any CPU.ActiveCfg = Release|Any CPU
{72816F5F-F86C-4A84-A4BB-9C05F2CD5320}.Release|Any CPU.Build.0 = Release|Any CPU
{97D93392-9484-484F-9F5F-60C5F3D67045}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{97D93392-9484-484F-9F5F-60C5F3D67045}.Debug|Any CPU.Build.0 = Debug|Any CPU
{97D93392-9484-484F-9F5F-60C5F3D67045}.Release|Any CPU.ActiveCfg = Release|Any CPU
{97D93392-9484-484F-9F5F-60C5F3D67045}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -110,20 +115,13 @@ Global
{469F8B29-F14E-49E8-B145-8C4FEF9D68CA} = {EDC05463-E574-4FF0-8518-D93D70EC138C}
{B6404BAD-9314-45F9-9F4D-A644D986FC37} = {B01105F5-963D-42C3-BFA7-2D26AC375D07}
{2B4F4767-CF26-485B-ADB3-751250EB1CDB} = {CF685C5E-70E1-40C5-BCFD-1E27695F0364}
{748653C4-D89A-4DBD-B190-6F221FEC980B} = {CF685C5E-70E1-40C5-BCFD-1E27695F0364}
{6C7200FA-4541-4AFD-B297-6C13E29968D5} = {CF685C5E-70E1-40C5-BCFD-1E27695F0364}
{0ED80C57-6B55-4B7E-B5C1-7F94C80F3E34} = {CF685C5E-70E1-40C5-BCFD-1E27695F0364}
{D15EC3E8-9387-4870-AA3B-A47432982B07} = {CF685C5E-70E1-40C5-BCFD-1E27695F0364}
{D11AD4C7-D302-44DC-AE02-840788391FE9} = {CF685C5E-70E1-40C5-BCFD-1E27695F0364}
{E3A15534-FB02-4CE2-8126-22E60EB1922E} = {CF685C5E-70E1-40C5-BCFD-1E27695F0364}
{3782DB94-2F99-4449-B727-D5E4172964AD} = {CF685C5E-70E1-40C5-BCFD-1E27695F0364}
{66615756-3C3F-4A46-9C00-D6BA2493B6FA} = {CF685C5E-70E1-40C5-BCFD-1E27695F0364}
{72816F5F-F86C-4A84-A4BB-9C05F2CD5320} = {CF685C5E-70E1-40C5-BCFD-1E27695F0364}
{97D93392-9484-484F-9F5F-60C5F3D67045} = {CF685C5E-70E1-40C5-BCFD-1E27695F0364}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1CD726E4-6BBA-4FC3-9C57-0981EF1A9475}
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
xUnitRevitRunner\xUnitRevitRunnerShared\xUnitRevitRunnerShared.projitems*{0ed80c57-6b55-4b7e-b5c1-7f94c80f3e34}*SharedItemsImports = 4
xUnitRevitRunner\xUnitRevitRunnerShared\xUnitRevitRunnerShared.projitems*{6c7200fa-4541-4afd-b297-6c13e29968d5}*SharedItemsImports = 4
xUnitRevitRunner\xUnitRevitRunnerShared\xUnitRevitRunnerShared.projitems*{748653c4-d89a-4dbd-b190-6f221fec980b}*SharedItemsImports = 4
xUnitRevitRunner\xUnitRevitRunnerShared\xUnitRevitRunnerShared.projitems*{d11ad4c7-d302-44dc-ae02-840788391fe9}*SharedItemsImports = 4
xUnitRevitRunner\xUnitRevitRunnerShared\xUnitRevitRunnerShared.projitems*{d15ec3e8-9387-4870-aa3b-a47432982b07}*SharedItemsImports = 4
EndGlobalSection
EndGlobal
89 changes: 89 additions & 0 deletions xUnitRevitRunner/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<Project>
<PropertyGroup>
<Copyright>Copyright (c) Speckle</Copyright>
<Authors>Speckle</Authors>
<Owners>Speckle</Owners>
<NeutralLanguage>en-US</NeutralLanguage>
<MinClientVersion>2.14</MinClientVersion>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<RepositoryUrl>https://github.com/specklesystems/xUnitRevit</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Product>$(AssemblyName) ($(TargetFramework))</Product>
<Version>1.0.0</Version>
<LangVersion>8.0</LangVersion>
<AssemblyName>xUnitRevitRunner</AssemblyName>
<RootNamespace>xUnitRevitRunner</RootNamespace>

<!--<Nullable>enable</Nullable>-->
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<NoWarn>$(NoWarn);1591;1701;1702;1705;VSX1000;CS0109;CS0108;CS0618;CS0114;NU1603</NoWarn>
<Platform>AnyCPU</Platform>

<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>

</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<IncludeSymbols>false</IncludeSymbols>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<DesignTimeBuild>false</DesignTimeBuild>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Deterministic>true</Deterministic>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<Import Project="xUnitRevitRunnerShared\xUnitRevitRunnerShared.projitems" Label="Shared" />
<ItemGroup>
<ProjectReference Include="..\..\speckle.xunit.runner.wpf\speckle.xunit.runner.wpf\speckle.xunit.runner.wpf.csproj" />
</ItemGroup>

<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
</ItemGroup>

<!-- MULTIVERSION POST BUILD EVENTS START -->
<Target Name="PostBuildActions" AfterTargets="PostBuildEvent">
<CallTarget Condition="$(Configuration.Contains('Debug'))" Targets="AfterBuildDebug" />
<CallTarget Condition="$(Configuration.Contains('Release'))" Targets="AfterBuildRelease" />
</Target>
<Target Name="AfterBuildDebug">
<ItemGroup>
<SourceDLLs Include="$(TargetDir)\**\*.*" />
<SourceManifest Include="$(TargetDir)*.addin" />
</ItemGroup>
<Copy DestinationFolder="$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)\$(TargetName)\%(RecursiveDir)" SourceFiles="@(SourceDLLs)" />
<Copy DestinationFolder="$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)\" SourceFiles="@(SourceManifest)" />
<Message Importance="High" Text="COPY @(SourceManifest)" />
</Target>
<Target Name="AfterBuildRelease">
<ItemGroup>
<SourceDLLs Include="$(TargetDir)\**\*.*" />
<SourceManifest Include="$(TargetDir)*.addin" />
</ItemGroup>
<Message Importance="High" Text="RELEASE copy from $(TargetDir) to $(SolutionDir)\Release\Release$(RevitVersion)\$(TargetName)\" />
<Copy DestinationFolder="$(SolutionDir)\Release\Release$(RevitVersion)\$(TargetName)\%(RecursiveDir)" SourceFiles="@(SourceDLLs)" />
<Copy DestinationFolder="$(SolutionDir)\Release\Release$(RevitVersion)\" SourceFiles="@(SourceManifest)" />
</Target>
<!--END-->
</Project>
36 changes: 0 additions & 36 deletions xUnitRevitRunner/xUnitRevitRunner2019/Properties/AssemblyInfo.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"profiles": {
"Profile 1": {
"commandName": "Executable",
"executablePath": "$(ProgramW6432)\\Autodesk\\Revit 2023\\Revit.exe",
"remoteDebugEnabled": true
}
}
}
98 changes: 10 additions & 88 deletions xUnitRevitRunner/xUnitRevitRunner2019/xUnitRevitRunner2019.csproj
Original file line number Diff line number Diff line change
@@ -1,94 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D11AD4C7-D302-44DC-AE02-840788391FE9}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>xUnitRevitRunner</RootNamespace>
<AssemblyName>xUnitRevitRunner</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<LangVersion>8.0</LangVersion>
<RevitVersion>2023</RevitVersion>
<TargetFramework>net48</TargetFramework>
<RevitVersion>2019</RevitVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<StartProgram>$(ProgramW6432)\Autodesk\Revit 2023\Revit.exe</StartProgram>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\speckle.xunit.runner.wpf\speckle.xunit.runner.wpf\speckle.xunit.runner.wpf.csproj">
<Project>{b6404bad-9314-45f9-9f4d-a644d986fc37}</Project>
<Name>speckle.xunit.runner.wpf</Name>
</ProjectReference>
<ProjectReference Include="..\..\xUnitRevitUtils\xUnitRevitUtils2023\xUnitRevitUtils2023.csproj">
<Project>{637136c9-ab5d-4f00-948e-c68fae2682d0}</Project>
<Name>xUnitRevitUtils2023</Name>
</ProjectReference>
<PackageReference Include="ModPlus.Revit.API.2019" Version="4.0.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="ModPlus.Revit.API.2019">
<Version>4.0.0</Version>
</PackageReference>

<ProjectReference Include="..\..\xUnitRevitUtils\xUnitRevitUtils2019\xUnitRevitUtils2019.csproj" />
</ItemGroup>
<Import Project="..\xUnitRevitRunnerShared\xUnitRevitRunnerShared.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- MULTIVERSION POST BUILD EVENTS START -->
<Target Name="AfterBuild">
<CallTarget Condition="$(Configuration.Contains('Debug'))" Targets="AfterBuildDebug" />
<CallTarget Condition="$(Configuration.Contains('Release'))" Targets="AfterBuildRelease" />
</Target>
<Target Name="AfterBuildDebug">
<ItemGroup>
<SourceDLLs Include="$(TargetDir)\**\*.*" />
<SourceManifest Include="$(TargetDir)*.addin" />
</ItemGroup>
<Copy DestinationFolder="$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)\$(TargetName)\%(RecursiveDir)" SourceFiles="@(SourceDLLs)" />
<Copy DestinationFolder="$(AppData)\Autodesk\REVIT\Addins\$(RevitVersion)\" SourceFiles="@(SourceManifest)" />
<Message Importance="High" Text="COPY @(SourceManifest)" />
</Target>
<Target Name="AfterBuildRelease">
<ItemGroup>
<SourceDLLs Include="$(TargetDir)\**\*.*" />
<SourceManifest Include="$(TargetDir)*.addin" />
</ItemGroup>
<Message Importance="High" Text="RELEASE copy from $(TargetDir) to $(SolutionDir)\Release\Release$(RevitVersion)\$(TargetName)\" />
<Copy DestinationFolder="$(SolutionDir)\Release\Release$(RevitVersion)\$(TargetName)\%(RecursiveDir)" SourceFiles="@(SourceDLLs)" />
<Copy DestinationFolder="$(SolutionDir)\Release\Release$(RevitVersion)\" SourceFiles="@(SourceManifest)" />
</Target>
<!--END-->
</Project>
</Project>
Loading

0 comments on commit 2ac5268

Please sign in to comment.