question

ChuckSalerno-4276 avatar image
0 Votes"
ChuckSalerno-4276 asked PengGe-MSFT commented

Visual Studio 2017 - Strong Name required

I have a solution developed in VS2017 and was working fine and then my development laptop crashed and had to reimage it and reinstalled VS2017, copied the complete solution over and now I keep running a runtime error asking for a "Strong Name is Required on a DLL in the project that never had been signed before. Anyone have an idea on what is going on?

Thanks in advance.

dotnet-csharpvs-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ChuckSalerno-4276
I have not heard from you for a couple of days. Please let me know if there is anything that I can help here.

0 Votes 0 ·
PengGe-MSFT avatar image
0 Votes"
PengGe-MSFT answered

Hi @ChuckSalerno-4276

Welcome to Microsoft Q&A!

You can try the following methods:
1). Project Properties -> Signing -> uncheck Sign the assembly checkbox.
2). Delete the proj file of your solution, such as "xx.csproj", "xx.vbproj".
3). Load the assembly or the third-party assembly.

If your issue still persists, feel free to let me know.

Sincerely,
Peng


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ChuckSalerno-4276 avatar image
0 Votes"
ChuckSalerno-4276 answered PengGe-MSFT commented

Thank you for your response.
I have 3 files that use the .csproj extension and just want to be sure.
Should all of them be removed?

106585-screenshot-2021-06-17-070245.jpg



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ChuckSalerno-4276
You can back up these files first and then delete them.
You can refer to this document to learn how to build and clean projects and solutions.


0 Votes 0 ·
ChuckSalerno-4276 avatar image
0 Votes"
ChuckSalerno-4276 answered PengGe-MSFT commented

Sorry, I'm still struggling with this. If you delete the project files within the solution how will it get built?
Why, all of a sudden, would this specific project within my solution require a "Strong name"?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ChuckSalerno-4276
Do not delete the source code files. You can try to create a new project, copy the source code to the new file, and then try to build the project. Please make sure that your project references the required assembly or library.

0 Votes 0 ·
ChuckSalerno-4276 avatar image
0 Votes"
ChuckSalerno-4276 answered PengGe-MSFT commented

With your suggestion I have more build errors than before. I'm not real clear on what your suggestion will resolve. Do you think that there is a problem with the Project file for the assembly now requiring a Strong name? Can we simply fix the project file in question? Why all of a sudden is this even happening?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ChuckSalerno-4276
Please check whether the files of your project are the same as before, whether there are duplicate files/folders, whether the path of the project has changed, and whether the dll files of your project have strong name.
You can refer to this document for information about strong-named assembly .


0 Votes 0 ·