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

Use .ico file for winform #65

Open
cocainit1502 opened this issue Sep 3, 2023 · 1 comment
Open

Use .ico file for winform #65

cocainit1502 opened this issue Sep 3, 2023 · 1 comment

Comments

@cocainit1502
Copy link

image
I have added an .ico file to my winform. When I use 'dotnet run', it's still normal, but when I use 'dotnet publish -r win-x64', when I run the exe file, I get an error as shown in the picture.

@kant2002
Copy link
Owner

I suspect that you did not have rd.xml like this
https://github.com/kant2002/WinFormsComInterop/blob/main/samples/SampleWindowsForms/rd.xml

in your project file.

<ItemGroup>
<RdXmlFile Include="rd.xml" />
</ItemGroup>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants