Skip to content

Commit

Permalink
Allow --useWinUI3 and --experimentalNugetDependency to be used at the…
Browse files Browse the repository at this point in the history
… same time in react-native-windows-init

Ran into this while testing WinAppSDK NuGet locally. I believe since #8064 added the projection NuGet, this check is no longer needed.
  • Loading branch information
AgneLukoseviciute authored Nov 9, 2021
1 parent 36f2881 commit d772e16
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/react-native-windows-init/src/Cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,14 +377,6 @@ function isProjectUsingYarn(cwd: string): boolean {
const useDevMode = !!argv.useDevMode;
let version = argv.version;

if (argv.useWinUI3 && argv.experimentalNuGetDependency) {
throw new CodedError(
'IncompatibleOptions',
"Error: Incompatible options specified. Options '--useWinUI3' and '--experimentalNuGetDependency' are incompatible",
{detail: 'useWinUI3 and experimentalNuGetDependency'},
);
}

if (!useDevMode) {
if (!version) {
const rnVersion = getReactNativeVersion();
Expand Down

0 comments on commit d772e16

Please sign in to comment.