Skip to content

Commit

Permalink
fix(pacmak): .NET generated .csproj file should use jsiiVersion for A…
Browse files Browse the repository at this point in the history
…mazon.JSII.Runtime (#563)

The generated .csproj file is currently using the same version for Package Version and for Amazon.JSII.Runtime.
  • Loading branch information
shivlaks authored Jun 29, 2019
1 parent 8de3f42 commit 4926bfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jsii-pacmak/lib/targets/dotnet/filegenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export class FileGenerator {
const packageReference = itemGroup2.ele("PackageReference");
packageReference.att("Include", "Amazon.JSII.Runtime");

packageReference.att("Version", assembly.version);
// Strip " (build abcdef)" from the jsii version
const jsiiVersionSimple = assembly.jsiiVersion.replace(/ .*$/, '');
packageReference.att("Version", jsiiVersionSimple);

dependencies.forEach((value: DotNetDependency) => {
const dependencyReference = itemGroup2.ele("PackageReference");
Expand Down

0 comments on commit 4926bfd

Please sign in to comment.