Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Move DllNotFoundException, EntryPointNotFoundException to CoreLib#3415

Merged
jkotas merged 1 commit intodotnet:masterfrom
shrah:exception
Apr 26, 2017
Merged

Move DllNotFoundException, EntryPointNotFoundException to CoreLib#3415
jkotas merged 1 commit intodotnet:masterfrom
shrah:exception

Conversation

@shrah
Copy link
Contributor

@shrah shrah commented Apr 24, 2017

@jkotas
Copy link
Member

jkotas commented Apr 24, 2017

You need to add forwarders for these to https://github.com/dotnet/corert/blob/master/src/System.Private.Interop/src/TypeForwarders.cs for now. They can be removed once the change propagates through the system.

@MichalStrehovsky
Copy link
Member

Fixes #3231

Is this really all we wanted to do in the scope of #3231? The name of the issue suggest we also wanted to do something with attributes. Moving them to CoreLib would mean they could get shared with CoreCLR.

{
// TODO: should be DllNotFoundException, but layering...
throw new TypeLoadException(moduleName);
throw new DllNotFoundException(string.Format(SR.Arg_DllNotFoundExceptionParameterized, moduleName));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should call SR.Format.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Same below)

@shrah
Copy link
Contributor Author

shrah commented Apr 24, 2017

@jkotas Done

@MichalStrehovsky I will keep the issue open and move more exceptions or attributes as necessary.

</data>
<data name="PlatformNotSupported_StrongNameSigning" xml:space="preserve">
<value>Strong-name signing is not supported on this platform.</value>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inadvertent white space change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sorry I was trying to merge a conflict from github UI. I will do the merge from my console and rebase.

@jkotas jkotas merged commit 72dadbe into dotnet:master Apr 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants