@@ -245,16 +245,17 @@ export async function generateSolution(destPath, options, fs = nodefs) {
245245 }
246246
247247 if ( info . useExperimentalNuGet ) {
248- // In 0.70, the template was renamed from `NuGet.Config` to `NuGet_Config`
249- const nugetConfigPath0_70 = path . join (
250- rnWindowsPath ,
251- "template" ,
252- "shared-app" ,
253- "proj" ,
254- "NuGet_Config"
255- ) ;
256- const nugetConfigPath = fs . existsSync ( nugetConfigPath0_70 )
257- ? nugetConfigPath0_70
248+ const nugetConfigTemplatePath = info . useFabric
249+ ? path . join ( rnWindowsPath , "templates" , "cpp-app" , "NuGet_Config" )
250+ : path . join (
251+ rnWindowsPath ,
252+ "template" ,
253+ "shared-app" ,
254+ "proj" ,
255+ "NuGet_Config"
256+ ) ;
257+ const nugetConfigPath = fs . existsSync ( nugetConfigTemplatePath )
258+ ? nugetConfigTemplatePath
258259 : null ;
259260 if ( nugetConfigPath ) {
260261 const nugetConfigDest = path . join ( destPath , "NuGet.Config" ) ;
@@ -263,8 +264,10 @@ export async function generateSolution(destPath, options, fs = nodefs) {
263264 copyTasks . push ( fs . promises . cp ( nugetConfigDest , nugetConfigCopy ) ) ;
264265 } else {
265266 const template = readTextFile ( nugetConfigPath , fs ) ;
266- const nuGetADOFeed = info . version . startsWith ( "0.0.0-" ) ;
267- const nugetConfig = mustache . render ( template , { nuGetADOFeed } ) ;
267+ const nugetConfig = mustache . render ( template , {
268+ addReactNativePublicAdoFeed : true ,
269+ nuGetADOFeed : info . version . startsWith ( "0.0.0-" ) ,
270+ } ) ;
268271 copyTasks . push (
269272 writeTextFile ( nugetConfigDest , nugetConfig , fs . promises ) ,
270273 writeTextFile ( nugetConfigCopy , nugetConfig , fs . promises )
0 commit comments