From d47494ae08b06419f1022f69a4296d9859f3cb27 Mon Sep 17 00:00:00 2001 From: Enrico Sada Date: Tue, 20 Jun 2017 18:35:06 +0200 Subject: [PATCH] fix error "target ResolveReferences" doesnt exists that target doesnt exists if project is crossgen --- src/dotnet-proj-info/Inspect.fs | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/dotnet-proj-info/Inspect.fs b/src/dotnet-proj-info/Inspect.fs index 6e96268e..bcb2571f 100644 --- a/src/dotnet-proj-info/Inspect.fs +++ b/src/dotnet-proj-info/Inspect.fs @@ -197,10 +197,11 @@ let parsePropertiesOut outFile = |> (fun x -> Error (UnexpectedMSBuildResult x)) let getProperties props = - let template = + let templateF isCrossgen = """ - + """ + ( @@ -225,6 +226,22 @@ let getProperties props = Encoding="UTF-8"/> """.Trim() + + //doing like that (crossgen/notcrossgen) because ResolveReferences doesnt exists + //if is crossgen + + let templateAll = + """ + + """ + + let template = + [ templateF true + templateF false + templateAll ] + |> String.concat (System.Environment.NewLine) + let outFile = getNewTempFilePath "GetProperties.txt" let args = [ Target "_Inspect_GetProperties"