question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Loading of custom addin ends in error CS1704

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fleedcommented, Dec 6, 2016

I need to cleanup some sensitive information, but I’ll try to

0reactions
pascalbergercommented, Oct 11, 2021

Closing due to inactivity. If this is still an issue with current version of Cake please reopen the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found