[ 
https://issues.apache.org/jira/browse/TINKERPOP-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16674133#comment-16674133
 ] 

Florian Hockmann commented on TINKERPOP-2085:
---------------------------------------------

I just spent half of the day on this and got the template working which I 
expected to be the difficult part here. Unfortunately, it seems to be 
impossible right now to use an encrypted API key stored in a {{nuget.config}} 
with {{dotnet nuget push}} right now from non-Windows platforms. So, removing 
Mono would mean that the API key has to be specified explicitly each time we 
want to deploy NuGet packages. I don't think that it's worth to remove Mono 
right now if that's the consequence as everyone probably already has Mono 
installed anyway who might be doing deployments as it would only add another 
inconvenience in that case.

I created an issue in the NuGet repo for the problem with the API key: 
[https://github.com/NuGet/Home/issues/7473]

Maybe I'm also missing something here as I would really expect something like 
this to work...

But even if this would work, adding the API key could still require Mono right 
now as [there is no {{dotnet nuget setApiKey}} command 
yet|https://github.com/NuGet/Home/issues/6437] and I didn't find any 
information on how the API key needs to be encrypted for the {{nuget.config}}.

Anyway, I pushed my changes [to a feature 
branch|https://github.com/apache/tinkerpop/tree/TINKERPOP-2085]. So, we can use 
them when we have a solution for the API key problem.

> Remove dependency on Mono
> -------------------------
>
>                 Key: TINKERPOP-2085
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2085
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: build-release, dotnet
>    Affects Versions: 3.2.10
>            Reporter: Florian Hockmann
>            Priority: Minor
>
> We currently rely on Mono to push NuGet packages and to create the 
> Gremlin.Net.Template package.
> To push the packages, we can now also simply use [{{dotnet nuget 
> push}}|https://docs.microsoft.com/dotnet/core/tools/dotnet-nuget-push]
> and for dotnet templates, there seems to be [a 
> workaround|https://github.com/NuGet/Home/issues/4254#issuecomment-372795990] 
> that uses a dummy {{.csproj}} file which enables {{dotnet pack}} to create a 
> valid NuGet package for a dotnet template.
> So, we don't have to use Mono any more at all and we also shouldn't need to 
> download nuget.exe any more during the build.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to