Skip to content

Commit 2f9aa5a

Browse files
committed
Update build configuration
1 parent 125dbff commit 2f9aa5a

4 files changed

Lines changed: 20 additions & 4 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<PropertyGroup>
44
<Nullable>enable</Nullable>
55
<LangVersion>latest</LangVersion>
6-
<PlatformTarget>x64</PlatformTarget>
76
<ImplicitUsings>true</ImplicitUsings>
7+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
88
</PropertyGroup>
99

1010
<PropertyGroup Condition="$(Configuration.Contains('R21'))">

Nice3point.TUnit.Revit.Tests/Nice3point.TUnit.Revit.Tests.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<UseWpf>true</UseWpf>
54
<OutputType>Exe</OutputType>
65
<Configurations>Debug R22;Debug R23;Debug R24;Debug R25;Debug R26</Configurations>
76
<Configurations>$(Configurations);Release R22;Release R23;Release R24;Release R25;Release R26</Configurations>
87
</PropertyGroup>
98

9+
<ItemGroup>
10+
<PackageReference Include="Nice3point.Revit.Build.Tasks" Version="3.0.1" PrivateAssets="all"/>
11+
</ItemGroup>
12+
1013
<ItemGroup>
1114
<ProjectReference Include="..\Nice3point.TUnit.Revit\Nice3point.TUnit.Revit.csproj" />
1215
</ItemGroup>

Nice3point.TUnit.Revit/Nice3point.TUnit.Revit.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<RepositoryType>git</RepositoryType>
1616
<PackageIcon>images\PackageIcon.png</PackageIcon>
1717
<PackageLicenseFile>License.md</PackageLicenseFile>
18+
<PackageReadmeFile>Readme.md</PackageReadmeFile>
1819
</PropertyGroup>
1920

2021
<PropertyGroup>
@@ -31,6 +32,7 @@
3132
<ItemGroup>
3233
<None Include="..\.nuget\PackageIcon.png" PackagePath="images\" Pack="true" Visible="false"/>
3334
<None Include="..\License.md" PackagePath="" Pack="true" Visible="false"/>
35+
<None Include="..\..\Readme.md" PackagePath="" Pack="true" Visible="false"/>
3436
</ItemGroup>
3537

3638
</Project>

build/Build.Clean.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
1-
sealed partial class Build
1+
using Nuke.Common.ProjectModel;
2+
3+
sealed partial class Build
24
{
35
Target Clean => _ => _
46
.OnlyWhenStatic(() => IsLocalBuild)
57
.Executes(() =>
68
{
9+
Project[] excludedProjects =
10+
[
11+
Solution.Build
12+
];
13+
714
CleanDirectory(ArtifactsDirectory);
15+
foreach (var project in Solution.AllProjects)
16+
{
17+
if (excludedProjects.Contains(project)) continue;
818

9-
foreach (var project in Solution.AllProjects.Where(project => project != Solution.Build))
1019
CleanDirectory(project.Directory / "bin");
20+
CleanDirectory(project.Directory / "obj");
21+
}
1122
});
1223

1324
static void CleanDirectory(AbsolutePath path)

0 commit comments

Comments
 (0)