Loading of custom addin ends in error CS1704
See original GitHub issueI have a custom addin package that depends on Cake.Common
. When I import it, I get the following error:
Error: error CS1704: An assembly with the same simple name 'Cake.Common' has already been imported. Try removing one of the references (e.g. 'D:\git\dev-tools\Cake\tools\Cake\Cake.Common.dll') or sign them to enable side-by-side
I’m adding it using this directive (it comes from a private package source in VSTS
):
#addin nuget:https://[myaccount].pkgs.visualstudio.com/_packaging/Cake.ReleaseTools/nuget/v3/index.json?package=Cake.ReleaseTools&version=0.0.6
And this is the .nuspec
in the package:
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>Cake.ReleaseTools</id>
<version>0.0.6</version>
<title>Cake.ReleaseTools</title>
<authors>My name</authors>
<owners>My company</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>https://someurl.com/</licenseUrl>
<projectUrl>https://someurl.com/</projectUrl>
<description>A Cake addin with utilities to release software</description>
<releaseNotes></releaseNotes>
<language>en-US</language>
<tags>cake build release script</tags>
<dependencies>
<dependency id="Newtonsoft.Json" version="9.0.1" />
</dependencies>
</metadata>
</package>
What am I doing wrong?
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Compiler Error CS1704
In this article This error points out that two references have the same assembly identity because the assemblies in question lack strong names, ......
Read more >c# - "An assembly with the same simple name has already ...
I'm getting the following error: error CS1704: An assembly with the same simple name 'Interop.xxx.dll, Version=1.0.0.0, Culture=neutral, ...
Read more >IAP Erros in Unity 2019.2.9f
This error is manifesting in the editor when the project is upgraded, and is also carrying over to Unity Cloud Build. It seems...
Read more >Help needed after upgrading to 5.5.. CS1704 UnityEngine. ...
error CS1704 : An assembly with the same name `XInputDotNetPure' has already been imported. Consider removing one of the references or sign the ......
Read more >Addin not loading when debugging
When I start it from the debugger the addin is not loaded and Outlook is saying its not loaded because 'A runtime error...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I need to cleanup some sensitive information, but I’ll try to
Closing due to inactivity. If this is still an issue with current version of Cake please reopen the issue.