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.

unify #r nuget behavior between C# and F#

See original GitHub issue

The #r nuget behavior and capabilities are different between C# and F#, with F#'s features being more developed. C# currently only supports specifying package id and version. F# supports other parameters such as a package feed (RestoreSources).

Unlike the current C# code, the F# semantics allow for multiple #r nuget statements to aggregate parameters, e.g.

#r "nuget:bl=true"
#r "nuget:RestoreSources=https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json"
#r "nuget:Microsoft.ML,version=1.4.0-preview"
#r "nuget:Microsoft.ML.AutoML"
#r "nuget:Microsoft.Data.DataFrame,version=0.1.1-e191008-1"

This behavior should be added to C#.

In terms of naming, parameter naming seems to draw from several sources in an inconsistent manner, e.g. in the example above bl is an MSBuild command line parameter, RestoreSources is an MSBuild property, version is shared with the dotnet CLI. We should consider making these consistent and hopefully more predictable and easier to remember.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Beloruscommented, Dec 22, 2019

I didn’t manage to make custom repository work with C#.

#r “nuget:MyCompany.Ddp.Contracts.ProtobufNet,2019.11.5.1-g2fbf2536,RestoreSources=https://artifactory.mycompany.com/artifactory/api/nuget/nuget”

It still tries to load from Nuget.

Latest version of dotnet-try with Jupyter lab 1.1.4

0reactions
KevinRansomcommented, Mar 31, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

unify #r nuget behavior between C# and F# · Issue #45
The #r nuget behavior and capabilities are different between C# and F#, with F#'s features being more developed. C# currently only supports ...
Read more >
Common NuGet configurations
NuGet.Config files control NuGet's behavior, and can be modified with nuget config command.
Read more >
Creating one NuGet package from multiple projects in ...
I have a solution that I'm working on that contains 4 class library projects ( A , B , C , D )....
Read more >
com.csutil.cscore 1.8.10
cscore is a lightweight library providing commonly used helpers & patterns for both your pure C# and Unity projects. Fewer 3rd party libraries...
Read more >
Unified Agent Configuration Parameters
This page describes the parameters used in the Unified Agent's configuration. ... C#. NuGet. For more information regarding NuGet integration, refer here.
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