From issues-return-100364-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Wed Oct 9 09:56:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B402C180645 for ; Wed, 9 Oct 2019 11:56:02 +0200 (CEST) Received: (qmail 75751 invoked by uid 500); 9 Oct 2019 09:56:02 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 75739 invoked by uid 99); 9 Oct 2019 09:56:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Oct 2019 09:56:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 684AEE30FA for ; Wed, 9 Oct 2019 09:56:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 2FE057807E6 for ; Wed, 9 Oct 2019 09:56:00 +0000 (UTC) Date: Wed, 9 Oct 2019 09:56:00 +0000 (UTC) From: "Pavel Tupitsyn (Jira)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-10554) .NET: Jars are not copied to target dir under .NET Core MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-10554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16947505#comment-16947505 ] Pavel Tupitsyn commented on IGNITE-10554: ----------------------------------------- Merged to master: 20b3fb8450196215b0ccda38ac8dee7963c14fa3 > .NET: Jars are not copied to target dir under .NET Core > ------------------------------------------------------- > > Key: IGNITE-10554 > URL: https://issues.apache.org/jira/browse/IGNITE-10554 > Project: Ignite > Issue Type: Bug > Components: platforms > Affects Versions: 2.4 > Reporter: Pavel Tupitsyn > Assignee: Pavel Tupitsyn > Priority: Critical > Labels: .NET > Fix For: 2.8 > > Time Spent: 20m > Remaining Estimate: 0h > > We use PowerShell script to update post-build event in the target project and copy jar files to target directory during build. > However, this no longer works with .NET Core. > nuspec file should be updated with new format, see example from https://github.com/NuGet/Samples/blob/master/ContentFilesExample/authoring/ContentFilesExample.nuspec: > {code} > > > > ContentFilesExample > 1.0.0 > nuget > nuget > false > A content v2 example package. > contentv2 contentFiles > > > > > > > > > > {code} > *UPDATE: this breaks NuGet package usage completely under .NET Core 3.0* > [NuGet behavior has changed|https://docs.microsoft.com/en-us/dotnet/core/whats-new/dotnet-core-3-0#build-copies-dependencies] in .NET Core 3.0: > ??The dotnet build command now copies NuGet dependencies for your application from the NuGet cache to the build output folder?? > In .NET Core 2.x dependencies are used directly from NuGet cache, so JAR files are resolved. > In 3.0 this does not work anymore, we should find a way to copy JAR files to the output folder. > Test cases: > * .NET 4.x > * .NET Core 2.x, 3.x Windows & Linux > * LINQPad > * Binary zip distribution (examples, .NET Core examples) -- This message was sent by Atlassian Jira (v8.3.4#803005)