Skip to content

Commit 3af8959

Browse files
authored
Remove AppHostRuntimeIdentifier from DM script (#8471)
* Remove AppHostRuntimeIdentifier from DM script * temp
1 parent d701873 commit 3af8959

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/fsharp/FSharp.DependencyManager/FSharp.DependencyManager.ProjectFile.fs

+2-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ type Resolution = {
2828
FullPath : string
2929
IsNotImplementationReference: string
3030
NativePath : string
31-
AppHostRuntimeIdentifier : string
3231
InitializeSourcePath : string }
3332

3433

@@ -72,7 +71,7 @@ module ProjectFile =
7271

7372
[| for line in lines do
7473
let fields = line.Split(',')
75-
if fields.Length < 8 then raise (new System.InvalidOperationException(sprintf "Internal error - Invalid resolutions file format '%s'" line))
74+
if fields.Length < 7 then raise (new System.InvalidOperationException(sprintf "Internal error - Invalid resolutions file format '%s'" line))
7675
else {
7776
NugetPackageId = fields.[0]
7877
NugetPackageVersion = fields.[1]
@@ -81,7 +80,6 @@ module ProjectFile =
8180
IsNotImplementationReference = fields.[4]
8281
InitializeSourcePath = fields.[5]
8382
NativePath = fields.[6]
84-
AppHostRuntimeIdentifier = fields.[7]
8583
}
8684
|]
8785

@@ -179,7 +177,7 @@ $(PACKAGEREFERENCES)
179177
180178
<ItemGroup>
181179
<ResolvedReferenceLines Remove='*' />
182-
<ResolvedReferenceLines Include='%(InteractiveResolvedFile.NugetPackageId),%(InteractiveResolvedFile.NugetPackageVersion),%(InteractiveResolvedFile.PackageRoot),%(InteractiveResolvedFile.FullPath),%(InteractiveResolvedFile.IsNotImplementationReference),%(InteractiveResolvedFile.InitializeSourcePath),%(NativeIncludeRoots.Path),$(AppHostRuntimeIdentifier)' KeepDuplicates="false" />
180+
<ResolvedReferenceLines Include='%(InteractiveResolvedFile.NugetPackageId),%(InteractiveResolvedFile.NugetPackageVersion),%(InteractiveResolvedFile.PackageRoot),%(InteractiveResolvedFile.FullPath),%(InteractiveResolvedFile.IsNotImplementationReference),%(InteractiveResolvedFile.InitializeSourcePath),%(NativeIncludeRoots.Path)' KeepDuplicates="false" />
183181
</ItemGroup>
184182
185183
<WriteLinesToFile Lines='@(ResolvedReferenceLines)'

0 commit comments

Comments
 (0)