Solution to "unable to compile licenses. licx as binary" in winform

Source: Internet
Author: User
I have been studying a set of. Net Windows Components in the last two days.
During compilation, "XXX \ licenses. licx failed to convert the license file" licenses. licx "to a binary resource. An error occurred while setting the object reference to the instance of the object.

First, it was found on Google that it would be okay to kill licenses. licx.
However, an error such as the failure to file licenses. licx is reported after I do so.

Later I thought there would be traces of it in the project file.
After opening. csprog, I found a Section


< File Relpath = "Licenses. licx"  
Buildaction = "Embeddedresource"
/>

Hey, try again after killing it...

After F7, well, the compilation was successful...

 

Note: Here is a turning point: After the widget is moved
If you try again for F7, then when, the error cannot be converted to a binary format ....
The reason is that the XML reappeared in. csprog.

Hey, you have to drink your saliva and then take a look at the first .........

During the process, I suddenly realized: Didn't you want to compile it? Even if you don't want to compile it, it will become ???

Back to screen
First, the licenses. licx attribute generation operation is quickly changed from the embedded resource to the none
Then quickly F7, well, pass...
More quickly move the control position and then F7. Well, it still passes smoothly ....

Don't worry, close the project, open the project, and modify the properties of the control, F7 is still normal ....

This should solve the problem that licenses. licx cannot be compiled into a binary resource .......

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.