-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet pack always failed on Ubuntu-18.04 with dotnet-sdk-3.0-preview3 #3024
Comments
and here is my msbuild's binary log |
@peterhuene can you try that on your ubuntu box? |
I have an Ubuntu box? 😄 I'm actually an Arch user. I can spin up an Ubuntu VM to investigate, though. |
@peterhuene Sorry, I actually thought you used Ubuntu. |
I can't reproduce it with Arch. Going to spin up a VM. |
oh, I'm sorry. I setup another VM(conditions are same), |
I've also been unable to reproduce. Does this consistently happen with the original VM if you try with another project? I'd like to figure out just a little more before closing. |
It can be reproduced in another project(like console) on same machine. |
If you Shot in the dark: do you happen to have an environment variable named |
I tried
|
I experience this too. Under WSL, with this env:
I've tried on different projects. One is a library targeting
In both cases, Edit: And oh, the same tooling + code works well to pack on Windows. |
Since this is blocking a beta-release of ours, I decided to strip as much as possible to see if I could find a way around this. I've found it's reproducible every time even on a new, empty project.
The env is still the same as post above. A bit surprised such a basic thing passed acceptance tests, even though I know this is a preview? Is there any immediate plans to fix this? We release our product as a set of packages and need to build native bits on Linux, so we are pretty blocked on this, or need to move built bits from Linux to Windows agents to do the packaging, which is of course something we would rather not want to spend time on. |
Another reproduction:
The Content of `ConsoleDemo.runtimeconfig.json`{
"runtimeOptions": {
"tfm": "netcoreapp3.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.0.0-preview6-27804-01"
}
}
} `dotnet --info`
|
Okay, this is funny, but I have nailed down the issue. It's a bug in The applicaitonusing System;
using System.Text.RegularExpressions;
namespace ConsoleDemo
{
class Program
{
static void Main(string[] args)
{
string test = @"Parent/Child.Grand.Child";
Regex reg = new Regex('^' + Regex.Escape(test) + '$', RegexOptions.IgnoreCase);
Console.WriteLine("Test string: {0}", test);
Console.WriteLine("Regex: {0}", reg);
Console.WriteLine("Regex.IsMatch: {0}", reg.IsMatch(test));
}
}
} Output on vanilla Ubuntu 18.04
Output on WSL Ubuntu 18.04
Removing Why this affects
|
Is there a known workaround for this? I'm getting the same issue under WSL 2. |
As pointed out by @stephentoub, the issue can be solved by manually setting the
|
See NuGet/Home#8246 also |
…0191001.22 (dotnet#3024) - Microsoft.NETCore.App.Runtime.win-x64 - 3.1.0-preview1.19501.22 Dependency coherency updates - Microsoft.NET.Sdk.WindowsDesktop - 3.1.0-preview1.19501.3 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.CodeDom - 4.7.0-preview1.19501.8 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Security.Cryptography.ProtectedData - 4.7.0-preview1.19501.8 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Text.Encoding.CodePages - 4.7.0-preview1.19501.8 (parent: Microsoft.NETCore.App.Runtime.win-x64) - System.Resources.Extensions - 4.7.0-preview1.19501.8 (parent: Microsoft.NETCore.App.Runtime.win-x64)
Overview
dotnet pack
command always failed in Ubuntu-18.04 in dotnet-sdk-3.0-preview3.if dotnet-sdk-2.2 was used, it successed.
Environment
platform is ubuntu-18.04-x64(created from azure virtual machine)
here is my
dotnet --info
Steps to reproduce
$HOME/dotnet
)$HOME/dotnet
to$PATH
envdotnet new classlib --name test1
TargetFramework
tonetstandard2.1
dotnet pack
Expected Behavior
test1.nupkg was created in
bin
directory.Actual Behavior
failed to create nupkg with following error message.
/home/itn/test1/bin/Debug/netstandard2.1/test1.dll
was created successfuly.I also tried to change
TargetFramework
tonetstandard2.0
, but did not success.The text was updated successfully, but these errors were encountered: