Skip to content

Commit 3246b57

Browse files
committed
Getting closer to proper packaging
1 parent dbc5316 commit 3246b57

4 files changed

Lines changed: 22 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ UpgradeLog*htm
6666
.builds
6767
*.dotCover
6868
*.log
69+
*.binlog
6970

7071
packages/
7172
*.nuget.props

src/Directory.Build.targets

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
<Project>
2+
<PropertyGroup>
3+
<CodeGenerationRoslynVersion>0.4.42</CodeGenerationRoslynVersion>
4+
</PropertyGroup>
25
<ItemGroup>
3-
<PackageReference Update="CodeGeneration.Roslyn.Attributes" Version="0.4.42" />
4-
<PackageReference Update="CodeGeneration.Roslyn" Version="0.4.42" />
6+
<PackageReference Update="CodeGeneration.Roslyn.Attributes" Version="$(CodeGenerationRoslynVersion)" />
7+
<PackageReference Update="CodeGeneration.Roslyn" Version="$(CodeGenerationRoslynVersion)" />
8+
<PackageReference Update="CodeGeneration.Roslyn.BuildTime" Version="$(CodeGenerationRoslynVersion)" />
59
<PackageReference Update="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="2.2.0" />
610
<PackageReference Update="System.Collections.Immutable" Version="1.4.0" />
711
<PackageReference Update="Validation" Version="2.4.18" />
812
<PackageReference Update="Microsoft.Build" Version="14.3.0" />
913
<PackageReference Update="xunit" Version="2.3.1" />
1014
<PackageReference Update="xunit.runner.visualstudio" Version="2.3.1" />
1115
</ItemGroup>
16+
<ItemGroup>
17+
<DotNetCliToolReference Update="dotnet-codegen" Version="$(CodeGenerationRoslynVersion)" />
18+
</ItemGroup>
1219
</Project>

src/ImmutableObjectGraph.Generation.Attributes/ImmutableObjectGraph.Generation.Attributes.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<RootNamespace>ImmutableObjectGraph.Generation</RootNamespace>
44
<TargetFrameworks>netstandard1.0;portable-net45+win8+wpa81+wp8</TargetFrameworks>
55
<Description>The runtime components behind the types generated with the ImmutableObjectGraph.Generation package.</Description>
6+
7+
<!-- This gets included in ImmutableObjectGraph.Generation -->
8+
<IsPackable>false</IsPackable>
69
</PropertyGroup>
710
<ItemGroup>
811
<PackageReference Include="Validation" />

src/ImmutableObjectGraph.Generation/ImmutableObjectGraph.Generation.csproj

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,20 @@
2727
</EmbeddedResource>
2828
</ItemGroup>
2929
<ItemGroup>
30+
<!-- TODO: Suppress this assembly from showing up as a frameworkAssembly dependency in our .nuspec file. -->
3031
<Reference Include="System.Data.Entity.Design" />
3132
</ItemGroup>
3233
<ItemGroup>
33-
<ProjectReference Include="..\ImmutableObjectGraph.Generation.Attributes\ImmutableObjectGraph.Generation.Attributes.csproj" />
34-
<ProjectReference Include="..\ImmutableObjectGraph\ImmutableObjectGraph.csproj" />
34+
<ProjectReference Include="..\ImmutableObjectGraph.Generation.Attributes\ImmutableObjectGraph.Generation.Attributes.csproj" PrivateAssets="all" />
35+
<ProjectReference Include="..\ImmutableObjectGraph\ImmutableObjectGraph.csproj" PrivateAssets="none" />
3536
</ItemGroup>
3637
<ItemGroup>
37-
<PackageReference Include="CodeGeneration.Roslyn" />
38-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" />
38+
<PackageReference Include="CodeGeneration.Roslyn" PrivateAssets="all" />
39+
<PackageReference Include="CodeGeneration.Roslyn.BuildTime" PrivateAssets="none" />
40+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" PrivateAssets="all" />
41+
</ItemGroup>
42+
<ItemGroup>
43+
<DotNetCliToolReference Include="dotnet-codegen" />
3944
</ItemGroup>
4045
<Target Name="PackBuildOutputs" DependsOnTargets="SatelliteDllsProjectOutputGroup;DebugSymbolsProjectOutputGroup">
4146
<ItemGroup>

0 commit comments

Comments
 (0)