Coder Social home page Coder Social logo

Comments (6)

sandyarmstrong avatar sandyarmstrong commented on June 2, 2024

Hi! We've just done a new release (1.5.0) but didn't bump the integration nupkg. I'm not sure that it's needed.

Can you explain what you mean about the assembly reference not working for you?

from workbooks.

slodge avatar slodge commented on June 2, 2024

What happens is:

  1. Create new .net standard 2.0 library project
  2. Try to add the Xam Integration nuget package (1.0.0-rc5) using the Nuget package manager window
  3. The first part of the installation happens....
Installing NuGet package Xamarin.Workbooks.Integration 1.0.0-rc5.
Committing restore...
Writing lock file to disk. Path: C:\source\repos\MyProject\obj\project.assets.json
Restore completed in 87.61 ms for C:\source\repos\MyProject\MyLib\MyLib.csproj.
Successfully installed 'Xamarin.Workbooks.Integration 1.0.0-rc5' to MyLib
Executing nuget actions took 3.8 sec
Time Elapsed: 00:00:04.5610780
========== Finished ==========

At this point I can see the Nuget dependency including the .dll (but I wasn't quick enough to screenshot it)
4. But then something else happens shown in the packagemanager output window only as:


Time Elapsed: 00:00:08.6940591
========== Finished ==========

At this point there is no Xamarin.Interactive.dll included in my project any more - just the package with no dll inside it

image


Digging deeper...

The nuspec file in the Xam nuget package is:

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
  <metadata>
    <id>Xamarin.Workbooks.Integration</id>
    <version>1.0.0-rc5</version>
    <title>Xamarin Workbooks Integration</title>
    <authors>Microsoft</authors>
    <owners>Microsoft</owners>
    <requireLicenseAcceptance>true</requireLicenseAcceptance>
    <developmentDependency>true</developmentDependency>
    <licenseUrl>https://aka.ms/xamint-eula</licenseUrl>
    <projectUrl>https://developer.xamarin.com/guides/cross-platform/workbooks/sdk/</projectUrl>
    <iconUrl>https://dl.xamarin.com/interactive/workbooks-nuget-icon.png</iconUrl>
    <description>Build library integrations for Xamarin Workbooks. See the project page for
      more information and documentation.</description>
    <copyright>Copyright 2016-2017 Microsoft. All rights reserved.</copyright>
    <tags>xamarin workbooks interactive</tags>
    <releaseNotes>* Now .NET Standard 2.0 instead of PCL.
* Includes new APIs that allow integrations to asynchronously post results to code cells.</releaseNotes>
  </metadata>
</package>

When I compare this to a "nuspec" that seems to be ok - e.g. I can import my own Slodge.XamarinWorkbookExtensions

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
  <metadata>
    <id>Slodge.XamarinWorkbookExtensions</id>
    <version>1.0.6</version>
    <authors>Stuart Lodge</authors>
    <owners>Stuart Lodge</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <licenseUrl>https://github.com/slodge/XamarinWorkbooksExtensions/blob/master/LICENSE</licenseUrl>
    <projectUrl>https://github.com/slodge/XamarinWorkbooksExtensions</projectUrl>
    <description>This project provides some extensions to help you visualise your Workbook outputs.</description>
    <copyright>Stuart Lodge</copyright>
    <tags>Xamarin Workbooks</tags>
    <repository url="https://github.com/slodge/XamarinWorkbooksExtensions" />
    <dependencies>
      <group targetFramework=".NETStandard2.0" />
    </dependencies>
  </metadata>
</package>

The main differences I can spot are <dependencies> and <developmentDependency>

My full VS2017 Pro setup is:

Microsoft Visual Studio Professional 2017 
Version 15.8.7
VisualStudio.15.Release/15.8.7+28010.2046
Microsoft .NET Framework
Version 4.7.03062

Installed Version: Professional

Visual C++ 2017   00369-60000-00001-AA653
Microsoft Visual C++ 2017

Application Insights Tools for Visual Studio Package   8.13.10627.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.8.05085.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services   15.8.31590
Provides languages services for ASP.NET Core Razor.

ASP.NET Web Frameworks and Tools 2017   5.2.60618.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.8.05023.0
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.3.3000.2
Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools   15.8.05023.0
Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio   2.3.3000.2
Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools   2.9.0-beta8-63208-01
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Cookiecutter   15.8.18241.1
Provides tools for finding, instantiating and customizing templates in cookiecutter format.

Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JetBrains ReSharper Ultimate 2018.1.3    Build 112.0.20180626.160528
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2018 JetBrains, Inc.

Microsoft Azure HDInsight Azure Node   2.3.3000.2
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service   2.3.3000.2
Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio   2.3
Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service   2.3.3000.2
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node   1.0
Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.10730.2

Microsoft Continuous Delivery Tools for Visual Studio   0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager   1.0
Install client-side libraries easily to any web project

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio Tools for Containers   1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

MLGen Package Extension   1.0
MLGen Package Visual Studio Extension Detailed Info

Node.js Tools   1.4.20907.4 Commit Hash:f048d52e417a8902dea9e42828b7fdab92d4aaaa
Adds support for developing and debugging Node.js apps in Visual Studio

NuGet Package Manager   4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Python   15.8.18241.1
Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

Python - Django support   15.8.18241.1
Provides templates and integration for the Django web framework.

Python - IronPython support   15.8.18241.1
Provides templates and integration for IronPython-based projects.

Python - Profiling support   15.8.18241.1
Profiling support for Python projects.

R Tools for Visual Studio   1.3.40517.1016
Provides project system, R Interactive window, plotting, and more for the R programming language.

ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info

ResourcePackage Extension   1.0
ResourcePackage Visual Studio Extension Detailed Info

SQL Server Data Tools   15.1.61808.07020
Microsoft SQL Server Data Tools

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript Tools   15.8.20822.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   2.9.0-beta8-63208-01
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 10.2 for F# 4.5   15.8.0.0.  Commit Hash: 55a3dc3231c95c77f81ee53f7d29152029da7408.
Microsoft Visual F# Tools 10.2 for F# 4.5

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for Containers   1.0
Visual Studio Tools for Containers

Visual Studio Tools for Universal Windows Apps   15.0.28010.2046
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

from workbooks.

slodge avatar slodge commented on June 2, 2024

Aside from that - good job on the 1.5 release (y) and it would be fab to have a proper release of the integration (i.e. to move out of prerelease)

from workbooks.

sandyarmstrong avatar sandyarmstrong commented on June 2, 2024

Right, it's a development dependency because you don't need to ship (or depend on) our package in your integration package, because Workbooks will always use its own version of that assembly (and actually that assembly is not a real assembly, but that's another story).

Are you unable to get intellisense in VS? Are you unable to build your library when it references types from our package?

from workbooks.

slodge avatar slodge commented on June 2, 2024

The assembly isn't added to the list of references when I import using nuget into a new .Net Standard 2.0.3 C# project.

I have to add the Xamarin.Interactive.dll assembly manually in order to get intellisense or in order to build any code which would reference the xam namespaces.

I guess this might be something unique to my VS2017Pro setup (or maybe it's something in my virus checker - this is a corporate Win10 build).... Does the current nuget package work for other people in a VS2017 Windows10 installation for a new blank .Net Standard 2.0.3 library project?

Here's my experience in a rather slow gif:
forxam

from workbooks.

slodge avatar slodge commented on June 2, 2024

I tried publishing a version of the Slodge nuget package without <dependencies> - that imports fine into a new project... so I think that bit of the nuspec is not relevant either... 😕

from workbooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.