-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate CalculatorNuGet sample (#952)
## Description Move the CalculatorNuget sample to the samples-old folder and remove it from CI. ### Why With 0.75 we're essentially steering folks away from using the experimental nuget by switching to the new `init-windows` CLI command. We don't need this sample anymore. ## Screenshots N/A ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/952)
- Loading branch information
1 parent
6d2dc5a
commit 69ba966
Showing
97 changed files
with
211 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
130 changes: 65 additions & 65 deletions
130
samples/CalculatorNuGet/README.md → samples-old/CalculatorNuGet/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,65 @@ | ||
# CalculatorNuGet - React Native for Windows | ||
|
||
This sample showcases the usage of React Native for Windows to build a simple Calculator, using the Microsoft.ReactNative NuGet. | ||
|
||
It currently targets React Native Windows 0.74. | ||
|
||
### Setup | ||
First, make sure you've met the [React Native Windows System Requirements](https://microsoft.github.io/react-native-windows/docs/rnw-dependencies). | ||
|
||
Then, within this folder, install the applications's dependencies. If you have `yarn` installed: | ||
|
||
```cmd | ||
yarn install | ||
``` | ||
|
||
Otherwise, you can just use npm: | ||
|
||
```cmd | ||
npm install | ||
``` | ||
|
||
### Run | ||
Once you have all of the dependencies installed, you can run the application with the following command: | ||
|
||
```cmd | ||
npx react-native run-windows | ||
``` | ||
|
||
The command will: | ||
* Build the application and all dependencies | ||
* Deploy the application | ||
* Launch the React Native Server and Debugger | ||
* Launch the application | ||
|
||
### Upgrade | ||
To upgrade this sample to the latest version of RNW: | ||
|
||
1. Open a command prompt and navigate to the `samples` folder: | ||
```cmd | ||
cd .. | ||
``` | ||
2. Delete this folder: | ||
```cmd | ||
rd /s /q CalculatorNuGet | ||
``` | ||
3. Create a new React Native app and change version to version you want to upgrade to: | ||
```cmd | ||
npx react-native init CalculatorNuGet --template "react-native@^0.72.0" | ||
``` | ||
4. Add Windows support: | ||
```cmd | ||
cd CalculatorNuGet | ||
npx react-native-windows-init --version latest --overwrite --experimentalNuGetDependency | ||
``` | ||
5. Restore these original app files: | ||
``` | ||
git restore README.md | ||
git restore App.tsx | ||
``` | ||
6. Verify the new app builds and runs: | ||
``` | ||
npx react-native run-windows | ||
``` | ||
7. Look at windows/Calculator/Package.appxmanifast and change the publisher name to "CN=React Native Windows Sample". | ||
8. Update this readme with the new major version at the top. | ||
# CalculatorNuGet - React Native for Windows | ||
|
||
This sample showcases the usage of React Native for Windows to build a simple Calculator, using the Microsoft.ReactNative NuGet. | ||
|
||
It currently targets React Native Windows 0.74. | ||
|
||
### Setup | ||
First, make sure you've met the [React Native Windows System Requirements](https://microsoft.github.io/react-native-windows/docs/rnw-dependencies). | ||
|
||
Then, within this folder, install the applications's dependencies. If you have `yarn` installed: | ||
|
||
```cmd | ||
yarn install | ||
``` | ||
|
||
Otherwise, you can just use npm: | ||
|
||
```cmd | ||
npm install | ||
``` | ||
|
||
### Run | ||
Once you have all of the dependencies installed, you can run the application with the following command: | ||
|
||
```cmd | ||
npx react-native run-windows | ||
``` | ||
|
||
The command will: | ||
* Build the application and all dependencies | ||
* Deploy the application | ||
* Launch the React Native Server and Debugger | ||
* Launch the application | ||
|
||
### Upgrade | ||
To upgrade this sample to the latest version of RNW: | ||
|
||
1. Open a command prompt and navigate to the `samples` folder: | ||
```cmd | ||
cd .. | ||
``` | ||
2. Delete this folder: | ||
```cmd | ||
rd /s /q CalculatorNuGet | ||
``` | ||
3. Create a new React Native app and change version to version you want to upgrade to: | ||
```cmd | ||
npx react-native init CalculatorNuGet --template "react-native@^0.72.0" | ||
``` | ||
4. Add Windows support: | ||
```cmd | ||
cd CalculatorNuGet | ||
npx react-native-windows-init --version latest --overwrite --experimentalNuGetDependency | ||
``` | ||
5. Restore these original app files: | ||
``` | ||
git restore README.md | ||
git restore App.tsx | ||
``` | ||
6. Verify the new app builds and runs: | ||
``` | ||
npx react-native run-windows | ||
``` | ||
7. Look at windows/Calculator/Package.appxmanifast and change the publisher name to "CN=React Native Windows Sample". | ||
8. Update this readme with the new major version at the top. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.