Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The type or namespace name 'Preserve' could not be found #163

Closed
JeremyBP opened this issue Nov 17, 2020 · 1 comment · Fixed by #165
Closed

The type or namespace name 'Preserve' could not be found #163

JeremyBP opened this issue Nov 17, 2020 · 1 comment · Fixed by #165

Comments

@JeremyBP
Copy link
Contributor

Hi Dan,

I'm facing this error while building a newly created blank project with Prism Template Pack and referencing Prism.DryIoc.Extensions v8.0.20-beta from SponsorConnect:

[MyWindowsUserPath]\.nuget\packages\prism.dryioc.extensions\8.0.20-beta\build\PreserveContainerExtension.cs(4,12,4,20): error CS0246: The type or namespace name 'Preserve' could not be found (are you missing a using directive or an assembly reference?)

PreserveError

Same error message on both iOS and Android side but no problem with the actual v7.2.0.1054 NuGet version.

Well, I can find a PreserveAttribute.cs file while browsing files from this v7 tagged commit, but I can't with the last version.

Interesting thing is that older v7 projects build succesfully after v8 update... It started to appear with new blank one.

Am I missing something?

Thanks

@dansiegel
Copy link
Owner

Thanks for the report. Definitely sounds like a bug. You should be able to work around it until I get a fix out by updating the PackageReference to exclude build assets.

@dansiegel dansiegel linked a pull request Nov 24, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants