Skip to content

Commit

Permalink
Move more over to default.props and fix the csproj files
Browse files Browse the repository at this point in the history
  • Loading branch information
woksin committed Mar 8, 2022
1 parent 5fcca4c commit b981500
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
11 changes: 5 additions & 6 deletions Generation/CSharp/Fundamentals/Fundamentals.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../../../default.props"/>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Dolittle.Contracts</AssemblyName>
<DolittleProtoProject>../../../Source/Fundamentals</DolittleProtoProject>
<DolittleProtoRoot>../../../Source</DolittleProtoRoot>
<DolittleProtoKeepFiles>VersionInfo.cs</DolittleProtoKeepFiles>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dolittle.Common" Version="2.*" PrivateAssets="All"/>
<PackageReference Include="Dolittle.Protobuf.MSBuild" Version="4.0.1"/>
<Protobuf Include="../../../Source/Fundamentals/**/*.proto"
ProtoRoot="../../../Source"
OutputDir="%(RecursiveDir)"
GrpcServices="None" />
</ItemGroup>
</Project>
13 changes: 6 additions & 7 deletions Generation/CSharp/Runtime/Runtime.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../../../default.props"/>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Dolittle.Runtime.Contracts</AssemblyName>
<DolittleProtoProject>../../../Source/Runtime</DolittleProtoProject>
<DolittleProtoRoot>../../../Source</DolittleProtoRoot>
<DolittleProtoKeepFiles>VersionInfo.cs</DolittleProtoKeepFiles>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../Fundamentals/Fundamentals.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Dolittle.Common" Version="2.*" PrivateAssets="All"/>
<PackageReference Include="Dolittle.Protobuf.MSBuild" Version="4.0.1"/>
<Protobuf Include="../../../Source/Runtime/**/*.proto"
ProtoRoot="../../../Source"
OutputDir="%(RecursiveDir)"
GrpcServices="Both" />
</ItemGroup>

</Project>
13 changes: 13 additions & 0 deletions default.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,17 @@
<Protobuf_NoWarnMissingExpected>true</Protobuf_NoWarnMissingExpected>
<Protobuf_TouchMissingExpected>true</Protobuf_TouchMissingExpected>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Dolittle.Common" Version="2.*" PrivateAssets="All"/>
<PackageReference Include="Google.Protobuf" Version="$(GoogleProtobufVersion)" />
<PackageReference Include="Google.Protobuf.Tools" Version="$(GoogleProtobufToolsVersion)" PrivateAssets="All"/>
<PackageReference Include="Grpc.Tools" Version="$(GrpcVersion)" PrivateAssets="All"/>
<PackageReference Include="Grpc.Core.Api" Version="$(GrpcVersion)" />
</ItemGroup>
<Target Name="DeleteSourceFiles" BeforeTargets="BeforeBuild">
<ItemGroup>
<FilesToDelete Include="**/*.cs" Exclude="VersionInfo.cs"/>
</ItemGroup>
<Delete Files="@(FilesToDelete)"/>
</Target>
</Project>

0 comments on commit b981500

Please sign in to comment.