File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 268
268
<value >The namespace to use. Matches the directory by default.</value >
269
269
</data >
270
270
<data name =" NativeAotDescription" xml : space =" preserve" >
271
- <value >Additionally generate all the code required for NativeAOT compilation and precompiled queries (experimental).</value >
271
+ <value >Generate additional code in the compiled model required for NativeAOT compilation and precompiled queries (experimental).</value >
272
272
</data >
273
273
<data name =" NativeAotWarning" xml : space =" preserve" >
274
274
<value >NativeAOT support is experimental and can change in the future.</value >
Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ protected override int Execute(string[] args)
38
38
throw new CommandException ( Resources . VersionRequired ( "6.0.0" ) ) ;
39
39
}
40
40
41
+ if ( ( _precompileQueries ! . HasValue ( ) || _nativeAot ! . HasValue ( ) )
42
+ && new SemanticVersionComparer ( ) . Compare ( EFCoreVersion , "9.0.0" ) < 0 )
43
+ {
44
+ throw new CommandException ( Resources . VersionRequired ( "9.0.0" ) ) ;
45
+ }
46
+
41
47
var result = executor . OptimizeContext (
42
48
_outputDir ! . Value ( ) ,
43
49
_namespace ! . Value ( ) ,
Original file line number Diff line number Diff line change 301
301
<value >The namespace to use. Matches the directory by default.</value >
302
302
</data >
303
303
<data name =" NativeAotDescription" xml : space =" preserve" >
304
- <value >Additionally generate all the code required for NativeAOT compilation and precompiled queries (experimental).</value >
304
+ <value >Generate additional code in the compiled model required for NativeAOT compilation and precompiled queries (experimental).</value >
305
305
</data >
306
306
<data name =" NativeAotWarning" xml : space =" preserve" >
307
307
<value >NativeAOT support is experimental and can change in the future.</value >
You can’t perform that action at this time.
0 commit comments