react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Publishing NuGet Packages Broken for RNW 0.62

Open NickGerleman opened this issue 6 years ago • 6 comments

We see errors after the change from @tudorms about multiple copies of the ReactNativeWindows project in the universal solution.

Error parsing solution file at D:\a\1\s\vnext\ReactWindows-Universal.sln: Exception has been thrown by the target of an invocation. The solution file has two projects named "ReactWindowsCore". D:\a\1\s\vnext\ReactWindows-Universal.sln

https://dev.azure.com/ms/react-native-windows/_build/results?buildId=82226&view=results

Unsure of why this wasn't caught by PR validation. Possibly there is some setup difference or this was related to image changes?

NickGerleman avatar Jun 01 '20 20:06 NickGerleman

This likely only impacts RNW developers (or NuGet package consumers) instead of end-users.

NickGerleman avatar Jun 01 '20 20:06 NickGerleman

@asklar Do you have any ideas here? The file is identical to what we had in master when you did the change there.

tudorms avatar Jun 01 '20 21:06 tudorms

@tudorms right - I think you might need #5012 but that might be too intrusive for a backport. An easy fix would be to change the display name for one of the projects: e.g. change:

Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactWindowsCore", "ReactWindowsCore\ReactWindowsCore.vcxitems", "{11C084A3-A57C-4296-A679-CAC17B603145}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactWindowsCore", "ReactWindowsCore\ReactWindowsCore.vcxproj", "{11C084A3-A57C-4296-A679-CAC17B603144}"

into

Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactWindowsCore-Items", "ReactWindowsCore\ReactWindowsCore.vcxitems", "{11C084A3-A57C-4296-A679-CAC17B603145}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactWindowsCore", "ReactWindowsCore\ReactWindowsCore.vcxproj", "{11C084A3-A57C-4296-A679-CAC17B603144}"

asklar avatar Jun 01 '20 21:06 asklar

So master branch publish was broken back then 3 weeks ago? I'm trying to figure out how we can catch something like this in the future.

tudorms avatar Jun 01 '20 21:06 tudorms

An easy fix would be to change the display name for one of the projects:

Visual Studio doesn't like that, it just reverts the change.

tudorms avatar Jun 01 '20 21:06 tudorms

Closing since we're able to publish now.

NickGerleman avatar Jun 16 '20 01:06 NickGerleman