• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by cflorea · Jul 14, 2017 at 09:01 AM · errorpluginvisual studiodllgoogle

How to use Google Apps Script with Unity and create a simple application that makes requests to the Google Apps Script Execution API

I followed the steps here and created a simple .NET console application that makes requests to the Google Apps Script Execution API. Worked as expected.

Now I'm trying to reproduce this in Unity but I'm stuck. I installed the Google.Apis.Script.v1 package in Visual Studio using the NuGet Package Manager Console and brought it to my Unity project. Unity complains that assemblies with the same identity have already been imported and that I should consider removing duplicated references. I get the same error for each duplicate. This is one of the 35 errors:

 error CS1703: An assembly `System.Net.Http' with the same identity has already been imported. Consider removing one of the references
 Assets/packages/System.Net.Http.4.3.1/lib/net46/System.Net.Http.dll (Location of the symbol related to previous error)
 Assets/packages/System.Net.Http.4.3.1/runtimes/unix/lib/netstandard1.6/System.Net.Http.dll (Location of the symbol related to previous error)

Any ideas on how to proceed?
Is there a different Google.Apis.Script.v1 package for Unity?

I'm using Unity 2017.1.0f3 with Scripting Runtime Version set to Experimental (.NET 4.6 Equivalent) and Api Compatibility Level set to .NET 4.6.

Update: Although hesitant about it, I excluded the duplicates from the Unity project. Other errors appeared. I uploaded a conversation I had with a friend regarding the issue suggesting that maybe the threading biz is not supported in mono (click capture.png below to open): alt text

capture.png (119.0 kB)
Comment

People who like this

0 Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tonialatalo · Jul 14, 2017 at 02:28 PM 0
Share

Just a note (from the friend in the chat): can still be just an install prob too, if the DLLs are somehow not right, leading to that circular dependency error. Was just thinking of Mono compatibility too as another possible source of error but no evidence of that so far, at least that System.Threading.CancellationToken seemed that might exist.

0 Replies

  • Sort: 

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

70 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

EntryPointNotFoundException, when trying to import DLL. Help please :) 1 Answer

EntryPointNotFoundException - .so plugin (Linux) 1 Answer

Weird Compile Error in Temp Folder Temp/UnityVS_bin\Debug\Assembly-CSharp.dll 1 Answer

Why is my managed plugin not being referenced. 1 Answer

How to use dll in webplayer? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges