Abstract class CodePushOptions can't create object: react-native-code-push package not building with react native windows(c# app)
Problem Description Hi Team,
We were working on code push for native windows app which is c# app(app.xaml.cs). We manually link the code push library to Visual Studio solution as Exiting App and added the reference of CodePush to my actual app. But we were getting an error like 'can't create the object for abstract class'
Below are the steps we followed for manual linking.
- install react-native-code-push
- add code-push library to Visual studio solution.
- add reference CodePush to our c# app.
- add code-push package provider in app.xaml.cs file. Example: PackageProviders.Add(new Microsoft.CodePush.ReactNative.ReactPackageProvider());
Expected Results: The build should be success and the app should be launched fine.
Environment:

NOTE: react-native-code-push library is working fine with 0.63.0 react native version. But the problem with 0.67.0 react native version and its a c# project with manual linking of react-native-code-push.
We have seen, similar kind of issue logged here in react-native-code-push repo. Below is the defect Id. https://github.com/microsoft/react-native-code-push/issues/2235
Please suggest us the work around.
Thanks Rahman
@chrisglein FYI
@djalmaaraujo @joenoon @corymsmith @qingfeng @arunvenkat1911
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.
any update on this issue
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.
This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.