File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Cli/dotnet/Commands/Run Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -110,14 +110,14 @@ public int Execute()
110
110
}
111
111
else
112
112
{
113
- if ( EntryPointFileFullPath is not null )
113
+ if ( NoCache )
114
114
{
115
- projectFactory = CreateVirtualCommand ( ) . PrepareProjectInstance ( ) . CreateProjectInstance ;
115
+ throw new GracefulException ( CliCommandStrings . InvalidOptionCombination , RunCommandParser . NoCacheOption . Name , RunCommandParser . NoBuildOption . Name ) ;
116
116
}
117
117
118
- if ( NoCache )
118
+ if ( EntryPointFileFullPath is not null )
119
119
{
120
- throw new GracefulException ( CliCommandStrings . InvalidOptionCombination , RunCommandParser . NoCacheOption . Name , RunCommandParser . NoBuildOption . Name ) ;
120
+ projectFactory = CreateVirtualCommand ( ) . PrepareProjectInstance ( ) . CreateProjectInstance ;
121
121
}
122
122
}
123
123
You can’t perform that action at this time.
0 commit comments