File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/Uno.UI.RemoteControl.Host/Extensibility Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,9 @@ public class AddIns
17
17
public static IImmutableList < string > Discover ( string solutionFile )
18
18
{
19
19
var tmp = Path . GetTempFileName ( ) ;
20
- var command = $ "build \" { solutionFile } \" --target:UnoDumpTargetFrameworks \" -p:UnoDumpTargetFrameworksTargetFile={ tmp } \" --verbosity quiet";
21
- var result = ProcessHelper . RunProcess ( "dotnet" , command ) ;
20
+ var wd = Path . GetDirectoryName ( solutionFile ) ;
21
+ var command = $ "build \" { solutionFile } \" -t:UnoDumpTargetFrameworks \" -p:UnoDumpTargetFrameworksTargetFile={ tmp } \" --verbosity quiet";
22
+ var result = ProcessHelper . RunProcess ( "dotnet" , command , wd ) ;
22
23
var targetFrameworks = Read ( tmp ) ;
23
24
24
25
if ( targetFrameworks . IsEmpty )
@@ -50,8 +51,8 @@ public static IImmutableList<string> Discover(string solutionFile)
50
51
foreach ( var targetFramework in targetFrameworks )
51
52
{
52
53
tmp = Path . GetTempFileName ( ) ;
53
- command = $ "build \" { solutionFile } \" --target :UnoDumpRemoteControlAddIns \" -p:UnoDumpRemoteControlAddInsTargetFile={ tmp } \" --verbosity quiet --framework \" { targetFramework } \" -nowarn:MSB4057";
54
- result = ProcessHelper . RunProcess ( "dotnet" , command ) ;
54
+ command = $ "build \" { solutionFile } \" -t :UnoDumpRemoteControlAddIns \" -p:UnoDumpRemoteControlAddInsTargetFile={ tmp } \" --verbosity quiet --framework \" { targetFramework } \" -nowarn:MSB4057";
55
+ result = ProcessHelper . RunProcess ( "dotnet" , command , wd ) ;
55
56
if ( ! string . IsNullOrWhiteSpace ( result . error ) )
56
57
{
57
58
if ( _log . IsEnabled ( LogLevel . Warning ) )
You can’t perform that action at this time.
0 commit comments