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()
110110 }
111111 else
112112 {
113- if ( EntryPointFileFullPath is not null )
113+ if ( NoCache )
114114 {
115- projectFactory = CreateVirtualCommand ( ) . PrepareProjectInstance ( ) . CreateProjectInstance ;
115+ throw new GracefulException ( CliCommandStrings . InvalidOptionCombination , RunCommandParser . NoCacheOption . Name , RunCommandParser . NoBuildOption . Name ) ;
116116 }
117117
118- if ( NoCache )
118+ if ( EntryPointFileFullPath is not null )
119119 {
120- throw new GracefulException ( CliCommandStrings . InvalidOptionCombination , RunCommandParser . NoCacheOption . Name , RunCommandParser . NoBuildOption . Name ) ;
120+ projectFactory = CreateVirtualCommand ( ) . PrepareProjectInstance ( ) . CreateProjectInstance ;
121121 }
122122 }
123123
You can’t perform that action at this time.
0 commit comments