Coder Social home page Coder Social logo

core's Introduction

.NET News & Release Notes

Welcome to the home of .NET news & release notes to help you stay up to date with all of latest previews and releases.

Follow our GitHub Discussions, where you will find the latest new on preview releases, service releases, and CVEs for .NET.

You can subscribe to news posts with the following RSS feeds:

Category GitHub Discussions RSS Feed
All Discussions ๐Ÿ”— ๐Ÿ”—
News ๐Ÿ”— ๐Ÿ”—
General ๐Ÿ”— ๐Ÿ”—

Release Notes

The following .NET releases are currently supported:

Version Release Date Support Latest Patch Version End of Support
.NET 9 November 12, 2024 STS 9.0.0-preview.3
.NET 8 November 14, 2023 LTS 8.0.4 November 10, 2026
.NET 7 November 8, 2022 STS 7.0.18 May 14, 2024
.NET 6 November 8, 2021 LTS 6.0.29 November 12, 2024

You can find release notes for all releases, including out-of-support releases, in the release-notes directory.

Release Information

core's People

Contributors

anipik avatar arthurrump avatar captainsafia avatar carlossanlop avatar danmoseley avatar danroth27 avatar dcwhittaker avatar huanwu avatar jamesmontemagno avatar jamshedd avatar jay-o-way avatar joshfree avatar kalaskarsanket avatar karelz avatar leecow avatar mairaw avatar marcpopmsft avatar mkartakmsft avatar mmitche avatar petermarcu avatar preetikr avatar rbhanda avatar richlander avatar rowanmiller avatar shmao avatar terrajobst avatar thaystg avatar vivmishra avatar weshaggard avatar wtgodbe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

core's Issues

Run of 'dotnet restore' fails with sample application created by 'dotnet new'

After creating a new app by running dotnet new and consequently running dotnet restore, the console spits out this error:

info : Running restore with 16 concurrent jobs.
info : Restoring packages for /home/kojak_/test/project.json...
info : NotFound https://api.nuget.org/v3-flatcontainer/netstandard.library/index.json 779ms
info : NotFound https://api.nuget.org/v3-flatcontainer/netstandard.platform/index.json 851ms

System: Linux Mint 17.2 Rafaela
$ uname -a
Linux kBox 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Problem with installing .NET core on Windows 7 x32 on VM

Hi.
I have huge problem with .NET Core. when i run dnvm it throw me a lot of errors. I don't have any ideas waht to do with that. I had all patches from windows update, system is a few days after install. I have here only Java, Jenkins and FF.

Some ideas.

I will be appreciated for any help.
Best regards.

Microsoft Windows [Wersja 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Wszelkie prawa zastrzeลผone.

C:\Users\Damian>dnvm

Getting started
It looks like you don't have any runtimes installed. Do you want us to install
a DNX to get you started?
[Y] Yes  [N] No  [?] Help (default is "Y"):
Determining latest version
Downloading dnx-clr-win-x86.1.0.0-rc1-update1 from https://www.nuget.org/api/v2
Installing to C:\Users\Damian\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1
Adding C:\Users\Damian\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin to pr
ocess PATH
Adding C:\Users\Damian\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin to us
er PATH
Unable to find type [Microsoft.Win32.RegistryView]: make sure that the assembly
 containing this type is loaded.
At C:\Users\Damian\.dnx\bin\dnvm.ps1:824 char:50
+         $regView = [Microsoft.Win32.RegistryView] <<<< ::Registry32
    + CategoryInfo          : InvalidOperation: (Microsoft.Win32.RegistryView:
   String) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

Method invocation failed because [Microsoft.Win32.RegistryKey] doesn't contain
a method named 'OpenBaseKey'.
At C:\Users\Damian\.dnx\bin\dnvm.ps1:832 char:57
+     $regKey = [Microsoft.Win32.RegistryKey]::OpenBaseKey <<<< ($regHive, $reg
View)
    + CategoryInfo          : InvalidOperation: (OpenBaseKey:String) [], Runti
   meException
    + FullyQualifiedErrorId : MethodNotFound

You cannot call a method on a null-valued expression.
At C:\Users\Damian\.dnx\bin\dnvm.ps1:833 char:40
+     $frameworkPath = $regKey.OpenSubKey <<<< ("SOFTWARE\Microsoft\NET Framewo
rk Setup\NDP\v4\Full").GetValue("InstallPath")
    + CategoryInfo          : InvalidOperation: (OpenSubKey:String) [], Runtim
   eException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Users\Damian\.dnx\bin\dnvm.ps1:834 char:25
+     $ngenExe = Join-Path <<<<  $frameworkPath 'ngen.exe'
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingVa
   lidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
   icrosoft.PowerShell.Commands.JoinPathCommand

Updating alias 'default' to 'dnx-clr-win-x86.1.0.0-rc1-update1'
   ___  _  ___   ____  ___
  / _ \/ |/ / | / /  |/  /
 / // /    /| |/ / /|_/ /
/____/_/|_/ |___/_/  /_/
.NET Version Manager v1.0.0-rc2-15545
By Microsoft Open Technologies, Inc.
usage: dnvm <command> [<arguments...>]

Current feed settings:
Default Stable: https://www.nuget.org/api/v2
Default Unstable: https://www.myget.org/F/aspnetvnext/api/v2
Current Stable Override: <none>
Current Unstable Override: <none>

    To use override feeds, set DNX_FEED and DNX_UNSTABLE_FEED environment keys r
espectively

commands:
    alias           Lists and manages aliases
    exec            Executes the specified command in a sub-shell where the PATH
 has been augmented to include the specified DNX
    help            Displays a list of commands, and help for specific commands
    install         Installs a version of the runtime
    list            Lists available runtimes
    run             Locates the dnx.exe for the specified version or alias and e
xecutes it, providing the remaining arguments to dnx.exe
    setup           Installs the version manager into your User profile director
y
    uninstall       Uninstalls a version of the runtime
    update-self     Updates DNVM to the latest version.
    upgrade         Installs the latest version of the runtime and reassigns the
 specified alias to point at it
    use             Adds a runtime to the PATH environment variable for your cur
rent shell
    version         Displays the DNVM version.

C:\Users\Damian>

Sample Hello world code not running

Sample Hello world code not running. The error I get is
error NU1001: The dependency NETStandard.Library >= 1.0.0-rc2-23704 could not be resolved. Any of you have solved this?

Running on OpenSUSE 13.2

I have successfully ran a console and ASP.NET 5 app using DNX coreclr on Ubuntu, but I am not able to do so on Opensuse 13.2 x64. I followed this tutorial : http://dotnet.github.io/docs/getting-started/installing/installing-core-linux.html .
I am trying to run a simple hello world as in the tutorial but the commands dnu and dnx do not do anything, they run and exit immediately.
The output of dnvm list :

Active Version              Runtime Architecture OperatingSystem Alias
------ -------              ------- ------------ --------------- -----
     1.0.0-rc1-final      coreclr x64          linux
     1.0.0-rc1-final      mono                 linux/osx       default
*    1.0.0-rc1-update1    coreclr x64          linux
     1.0.0-rc2-16237      coreclr x64          linux

How can I get this to work on OpenSUSE 13.2? The final goal is to run a ASP.NET 5 application.

Native compiled app fails on System.Globalization.NumberFormatInfo.CurrentInfo

I'm not sure if native compile is supposed to work yet or not, but I figured I'd try it and open an issue since I ran into something. This is a simple compute N digits of pi app.

Ubuntu 14.04.3 LTS
Microsoft .NET Development Utility CoreClr-x64-1.0.0-rc1-16048
dotnet 1.0.16776.1449511470-1

jg@hxz:~/pi$ bin/Debug/dnxcore50/pi 
Result: 314159265358979323846264338327941028841971693993689
jg@hxz:~/pi$ bin/Debug/dnxcore50/native/pi 
terminate called after throwing an instance of 'char const*'
Aborted

jg@hxz:~/pi$ gdb bin/Debug/dnxcore50/native/pi 
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from bin/Debug/dnxcore50/native/pi...(no debugging symbols found)...done.
(gdb) break main
Breakpoint 1 at 0x4289f0
(gdb) run
Starting program: /home/jg/pi/bin/Debug/dnxcore50/native/pi 
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named 'libstdcxx'
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Breakpoint 1, 0x00000000004289f0 in main ()
(gdb) s
Single stepping until exit from function main,
which has no line number information.
[New Thread 0x7fffdebbf700 (LWP 5841)]
terminate called after throwing an instance of 'char const*'

Program received signal SIGABRT, Aborted.
0x00007ffff6c01cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff6c01cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff6c050d8 in __GI_abort () at abort.c:89
#2  0x00007ffff7b36535 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff7b346d6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff7b34703 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff7b34922 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00000000004280b6 in __fail_fast ()
#7  0x0000000000405435 in System_Private_CoreLib_System_Globalization_NumberFormatInfo__get_CurrentInfo ()
#8  0x0000000000000000 in ?? ()
(gdb) 

Source code:

using System;
using System.Text;

namespace ConsoleApplication
{
    public class Program
    {
        public static void Main(string[] args)
        {
            try {
                Console.WriteLine($"Result: {CalculatePi(50)}");
            } catch(Exception e) {
                Console.WriteLine($"Exception: {e.Message}");
            }
        }

static public string CalculatePi(int digits)
{
    StringBuilder sb = new StringBuilder();
    digits++;

    uint[] x = new uint[digits*3+2];
    uint[] r = new uint[digits*3+2];

    for (int j = 0; j < x.Length; j++)
        x[j] = 20;

    for (int i = 0; i < digits; i++)
    {
        uint carry = 0;
        for (int j = 0; j < x.Length; j++)
        {
            uint num = (uint)(x.Length - j - 1);
            uint dem = num * 2 + 1;

            x[j] += carry;

            uint q = x[j] / dem;
            r[j] = x[j] % dem;

            carry = q * num;
        }
        if(i<digits-1)
            sb.Append((x[x.Length-1] / 10).ToString());
        r[x.Length - 1] = x[x.Length - 1] % 10; ;
        for (int j = 0; j < x.Length; j++)
            x[j] = r[j] * 10;
    }

    return sb.ToString();
}

    }
}

(Source of pi function http://stackoverflow.com/a/11679007/251002)

Not sure if this is related, but one of the times I mistyped a dotnet command I got this exception:

Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'api-ms-win-core-localization-l1-2-0.dll': The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
at Interop.mincore.FormatMessage(Int32 dwFlags, IntPtr lpSource_mustBeNull, UInt32 dwMessageId, Int32 dwLanguageId, StringBuilder lpBuffer, Int32 nSize, IntPtr[] arguments)
at Interop.mincore.TryGetErrorMessage(Int32 errorCode, StringBuilder sb, String& errorMsg)
at Interop.mincore.GetMessage(Int32 errorCode)
at System.Diagnostics.Process.ResolvePath(String filename)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at Microsoft.DotNet.Cli.Utils.Command.Execute()
at Microsoft.DotNet.Cli.Program.Main(String[] args)
Aborted

dotnet run the helloworld comes a error

Hello, I tried to install .net core and run hello world follow the get start page, but cannot work on ubuntu14.0.4 .

Get start page URL: http://dotnet.github.io/getting-started/

zero@zero:~/dotnet/core/samples/helloworld$ dotnet restore
Microsoft .NET Development Utility CoreClr-x64-1.0.0-rc1-16048

CACHE https://api.nuget.org/v3/index.json
Restoring packages for /home/zero/dotnet/core/samples/helloworld/project.json
GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.runtime/index.json
GET https://api.nuget.org/v3-flatcontainer/system.console/index.json
GET https://api.nuget.org/v3-flatcontainer/system.runtime/index.json
OK https://api.nuget.org/v3-flatcontainer/system.runtime/index.json 1449ms
OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.runtime/index.json 1942ms
OK https://api.nuget.org/v3-flatcontainer/system.console/index.json 3356ms
Writing lock file /home/zero/dotnet/core/samples/helloworld/project.lock.json
Restore complete, 4535ms elapsed

Feeds used:
https://api.nuget.org/v3-flatcontainer/

zero@zero:~/dotnet/core/samples/helloworld$ dotnet run

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Console, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

dnx hangs in docker container

I am trying to build docker container with dev build of dotnet coreclr following is my docker file

FROM debian:jessie

ENV DNX_VERSION 1.0.0-rc2-16351
ENV DNX_USER_HOME /opt/DNX_BRANCH
#Currently the CLR packages don't have runtime ids to handle debian:jessie but
#we are making sure that the dependencies are the right versions and are opting for
#the smaller base image. So we use this variable to overwrite the default detection.
ENV DNX_RUNTIME_ID ubuntu.14.04-x64

RUN apt-get -qq update && apt-get -qqy install unzip curl libicu-dev libunwind8 gettext libssl-dev libcurl3-gnutls zlib1g && rm -rf /var/lib/apt/lists/*

RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_USER_HOME=$DNX_USER_HOME DNX_BRANCH=v$DNX_VERSION sh
RUN bash -c "source $DNX_USER_HOME/dnvm/dnvm.sh \
&& dnvm install $DNX_VERSION -alias default -r coreclr -u\
&& dnvm alias default | xargs -i ln -s $DNX_USER_HOME/runtimes/{} $DNX_USER_HOME/runtimes/default"

# Install libuv for Kestrel from source code (binary is not in wheezy and one in jessie is still too old)
# Combining this with the uninstall and purge will save us the space of the build tools in the image
RUN LIBUV_VERSION=1.4.2 \
&& apt-get -qq update \
&& apt-get -qqy install autoconf automake build-essential libtool \
&& curl -sSL https://github.com/libuv/libuv/archive/v${LIBUV_VERSION}.tar.gz | tar zxfv - -C /usr/local/src \
&& cd /usr/local/src/libuv-$LIBUV_VERSION \
&& sh autogen.sh && ./configure && make && make install \
&& rm -rf /usr/local/src/libuv-$LIBUV_VERSION \
&& ldconfig \
&& apt-get -y purge autoconf automake build-essential libtool \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*

ENV PATH $PATH:$DNX_USER_HOME/runtimes/default/bin

Now when I build my app image for docker using the above image dnx command hangs after its output and doesn't complete.

Following is my docker file

FROM aspnet-rc2

ADD . /app

WORKDIR /app/approot

RUN [ "dnu", "restore", "--runtime", "ubuntu.14.04-x64", "--source", "https://www.myget.org/F/dotnet-core/", "--fallbacksource", "https://www.nuget.org/api/v2/"]

EXPOSE 7600

ENTRYPOINT ["./web"]

Following is the image which is the output of dnx --version, it never completes.

image

Where as rc1-update1 works fine. If there is open bug around this, could you please tell me last RC2 build which works.

This can easily be reproduced if you create a container using
docker run -i -t debian:jessie
and isntall DNVM on it and run dnvm upgrade -r coreclr -u

and execute dnx --version

Please help!

The content on get start page cannot work.

I tried to install .net core and run hello world follow the get start page, but either Mac OSX or Ubuntu cannot work.
Get start page URL: http://dotnet.github.io/getting-started/
My Mac OS version is Capitan EI and Ubuntu is 14.04 LTS.

Alway get error when I run "dotnet run" like below:
[on MAC OS]
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Console, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

[on Ubuntu 14.04 LTS]
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.IO, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

at System.Console.WriteLine(String value)
at HelloWorldSample.Program.Main()

dotnet new does not work on Ubuntu

Failed to load /usr/share/dotnet/bin/libcoreclr.so, error: /usr/share/dotnet/bin/libcoreclr.so: cannot enable executable stack as shared object requires: Invalid argument
Failed to bind to coreclr

deleted

var first = 25000000000.000000000000m;
var second = 25000000000m;
Console.WriteLine(first.Equals(second)); //true
Console.WriteLine(first.GetHashCode() == second.GetHashCode()); //false 

first =  25000000001.000000000000m;
second = 25000000001m;
Console.WriteLine(first.Equals(second)); //true
Console.WriteLine(first.GetHashCode() == second.GetHashCode()); //true 

first =  25000000000.100000000000m;
second = 25000000000.1m;
Console.WriteLine(first.Equals(second)); //true
Console.WriteLine(first.GetHashCode() == second.GetHashCode()); //true  

return false only if precision of one of values is 12 and the precision contains only trailing zeros and significant part is the 25 000 000 000 ^ (2 * n)

Is the dotnet5.4 TFM forward compatible with RC2?

If I were to release a new version of a library with support for the dotnet5.4 moniker, will it be consumable from a project that targets .NET Core 1.0 RC2 (specifically a netstandard TFM) ,or will I need to explicitly release a new version that targets netstandardX?

(I realise these monikers aren't actually equivalent, its more about maintaining support for .NET Core)

"dotnet restore" error

Is it expected that Net Core would generate the following error after typing dotnet restore on Windows 7?

dotnet new --lang F#
dotnet restore
log  : Restoring packages for e:\User\Projects\HelloWorld\NetCore\hello\project.json...
error: An error occurred while sending the request.
error: URL-address is not using a supported protocol
dotnet exited with error code 1

project.json:

{
    "version": "1.0.0-*",
    "compilationOptions": {
        "emitEntryPoint": true
    },

    "compilerName": "fsc",
    "compileFiles": [
        "Program.fs"
    ],

    "dependencies": {
        "Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
        "NETStandard.Library": "1.0.0-rc2-23811"
    },

    "frameworks": {
        "dnxcore50": { }
    }
}

The firewall is disabled

Multiple inheritance in C#

I want to use multiple inheritance, is there a way to use it directly without jumping in garden?
If not, why does .net not support it?

Default destination folder for Windows MSI is incompatible

Hello,

Default installation path for the official MSI is C:\Program Files\dotnet\, but it seems that dotnet core doesn't like space in its path - see #50.

Because of that, following the Getting started guide lead to this obscure error message:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Program' or one of its dependencies. The system cannot find the file specified.

I think we should either fix the crash reported in #50, or change the default path to something else.

Regards

Annih

Will DbConnection use a interface?

I've started building out a little ORM project for .Net Core and noticed that the DbConnection did not have any interfaces that I can wrap my providers behind. Is this something in the roadmap? If not, what is the expectation for unit testing, fakes by inheritance and what was the reasoning behind making this change from how .Net worked?

I tried looking for some documentation or issues related to this to help understand the direction you are going with DbConnection; came up empty.

Clarify platform support

I've been searching and tried asking around, but no one seem to have the answer as to what versions of Windows is supported. I know the latest versions are supported (8.1, 10), but what about Windows XP and Vista? Some software companies still have to officially support Windows XP/Vista even if they are not officially supported by MS.

If they are not officially supported, would the .NET core framework in self-contained mode run on them?
I'd wage that Windows XP probably don't have a few of the APIs needed by the CoreFX libraries, but what about CoreCLR? Could you essentially run managed C# assemblies on Windows XP?

VS2015 not compatible with Dotnet CLI

Hi,
I do apologize in advance, if this is not the place for posting this issue but I am having really hard time dealing with it and understanding why is it happening.

I cannot make VS2015 work with dotnet cli - I would like to edit and test may dotnet-core project using VS2015 and then have the ability to compile & run it using dotnet cli. However all my attempts to make it so were not successful, which is not ideal - I am aming for writing code on Windows and then using Travis-Ci for bulding.

So this is what is happening:

VS2015 -> Dotnet cli

If I create VS2015 โ€œConsole Applicationโ€ Project (Target .Net Framework 4.6.1) for net-core, I get the following project.json:

{
  "version": "1.0.0-*",
  "description": "ConsoleAppTest Console Application",
  "authors": [ "Nemo" ],
  "tags": [ "" ],
  "projectUrl": "",
  "licenseUrl": "",

  "compilationOptions": {
    "emitEntryPoint": true
  },

  "dependencies": {
  },

  "commands": {
    "ConsoleAppTest": "ConsoleAppTest"
  },

  "frameworks": {
    "dnx451": { },
    "dnxcore50": {
      "dependencies": {
        "Microsoft.CSharp": "4.0.1-beta-23516",
        "System.Collections": "4.0.11-beta-23516",
        "System.Console": "4.0.0-beta-23516",
        "System.Linq": "4.0.1-beta-23516",
        "System.Threading": "4.0.11-beta-23516"
      }
    }
  }

This project compiles and runs just fine when used by VS2015.
But as net-core point is cross-platform compatibility, I would like to restore and build it via dotcore cli (and for example, do CI builds on Travis-ci).
When running dotnet restore inside this project, I get the following error:

log  : Restoring packages for {my_path}\Projects\ConsoleAppTest\src\ConsoleAppTest\project.json...
error: System.Console 4.0.0-beta-23516 provides a compile-time reference assembly for System.Console on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Threading 4.0.11-beta-23516 provides a compile-time reference assembly for System.Threading on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Dynamic.Runtime 4.0.0 provides a compile-time reference assembly for System.Dynamic.Runtime on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Linq.Expressions 4.0.0 provides a compile-time reference assembly for System.Linq.Expressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.IO 4.0.0 provides a compile-time reference assembly for System.IO on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Threading.Tasks 4.0.0 provides a compile-time reference assembly for System.Threading.Tasks on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: System.Text.Encoding 4.0.0 provides a compile-time reference assembly for System.Text.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
error: Some packages are not compatible with DNXCore,Version=v5.0 (win7-x64).
error: System.Console 4.0.0-beta-23516 provides a compile-time reference assembly for System.Console on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Threading 4.0.11-beta-23516 provides a compile-time reference assembly for System.Threading on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Dynamic.Runtime 4.0.0 provides a compile-time reference assembly for System.Dynamic.Runtime on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Linq.Expressions 4.0.0 provides a compile-time reference assembly for System.Linq.Expressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.IO 4.0.0 provides a compile-time reference assembly for System.IO on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Threading.Tasks 4.0.0 provides a compile-time reference assembly for System.Threading.Tasks on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: System.Text.Encoding 4.0.0 provides a compile-time reference assembly for System.Text.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
error: Some packages are not compatible with DNXCore,Version=v5.0 (win7-x86).
info : Committing restore...
log  : Restore failed in 520ms.

Errors in {my_path}\Projects\ConsoleAppTest\src\ConsoleAppTest\project.json
    System.Console 4.0.0-beta-23516 provides a compile-time reference assembly for System.Console on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.Threading 4.0.11-beta-23516 provides a compile-time reference assembly for System.Threading on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.Dynamic.Runtime 4.0.0 provides a compile-time reference assembly for System.Dynamic.Runtime on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.Linq.Expressions 4.0.0 provides a compile-time reference assembly for System.Linq.Expressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.IO 4.0.0 provides a compile-time reference assembly for System.IO on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.Threading.Tasks 4.0.0 provides a compile-time reference assembly for System.Threading.Tasks on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    System.Text.Encoding 4.0.0 provides a compile-time reference assembly for System.Text.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x64.
    Some packages are not compatible with DNXCore,Version=v5.0 (win7-x64).
    System.Console 4.0.0-beta-23516 provides a compile-time reference assembly for System.Console on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.Threading 4.0.11-beta-23516 provides a compile-time reference assembly for System.Threading on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.Dynamic.Runtime 4.0.0 provides a compile-time reference assembly for System.Dynamic.Runtime on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.Linq.Expressions 4.0.0 provides a compile-time reference assembly for System.Linq.Expressions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.IO 4.0.0 provides a compile-time reference assembly for System.IO on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.Threading.Tasks 4.0.0 provides a compile-time reference assembly for System.Threading.Tasks on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    System.Text.Encoding 4.0.0 provides a compile-time reference assembly for System.Text.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with win7-x86.
    Some packages are not compatible with DNXCore,Version=v5.0 (win7-x86).

NuGet Config files used:
    {another_path}\AppData\Roaming\NuGet\NuGet.Config

Feeds used:
    https://api.nuget.org/v3/index.json

The same error appears while attempting to dotnet restore it on Ubuntu 14.04 Trusty in Travis CI, but except win7-x86 is replaced with Ubuntu.

Dotnet CLI -> VS2015

If I create a new project using dotnet new command, I get the following project.json:

{
    "version": "1.0.0-*",
    "compilationOptions": {
        "emitEntryPoint": true
    },

    "dependencies": {
        "NETStandard.Library": "1.0.0-rc2-23811"
    },

    "frameworks": {
        "dnxcore50": { }
    }
}

This project compiles and runs just fine when run from dotnet command.
But I would like to make it work with VS2015 as it is very comfortable IDE โ€“ so I open project.json as a project, everything seems to be working (no conflicts or errors in dependencies shown).

I add commands entry to json: โ€œcommandsโ€: { โ€œConsoleAppTest2โ€: โ€œConsoleAppTest2โ€} and hit CTRL+F5 - I am therefore greeted with following error:

System.IO.FileLoadExpection: Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definiton does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    at System.Reflection.RuntimeAssembly.GetEntryPoint(RuntimeAssembly assembly, ObjectHandleOnStack retMethod)
    at System.Reflection.RuntimeAssembly.get_EntryPoint()

I have just started working with net-core and have no clue how to solve this.
I fear it might have to do with VS2015 using old version of dotnet core ( while opening dotnet new created project, VS2015 output of restoring packages contains the following line:
C:\Users\{user}\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update2\bin\dnx.exe ).
If this is of importance, I have installed dotnet cli from msi.install long after VS2015 was installed.

Stats

The stats I think may be useful:

OS: Windows 10 x64 En

VS: Visual Studio Enterprise 2015 Version 14.0.25123.00 Update 2 (I am up to date all suggested updates)

Result of running dnx --version:

Microsoft .NET Execution environment
 Version:      1.0.0-rc1-16609
 Type:         CoreClr
 Architecture: x64
 OS Name:      Windows
 OS Version:   10.0
 Runtime Id:   win10-x64

Result of running where dnx:

C:\Users\{{user}}\.dnx\runtimes\dnx-coreclr-win-x64.1.0.0-rc1-update2\bin\dnx.exe

Result of running dnvm version: 1.0.0.rc1-15540

Result of running where dnvm:

C:\Users\{{user}}\.dnx\bin\dnvm.cmd
C:\Program Files\Microsoft DNX\Dnvm\dnvm.cmd

Result of running dotnet --version:

.NET Command Line Tools (1.0.0-beta-001598)

Product Information:
 Version:     1.0.0-beta-001598
 Commit Sha:  7582649f88

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 Runtime Id:  win10-x64

Result of running where dotnet:

C:\Program Files\dotnet\bin\dotnet.exe

Remote Debugging with Docker?

Does .NET Core supports remote debugging? I seem to recall a part of Scott Hanselman's Build demo where he used the VS Tools for Docker to remote debug into a Docker container. But I can't remember if the container was running .NET Core. I'd be grateful for any information on this.

I cross-posted my question here on the omnisharp-vscode repo, but I think it's probably more relevant to the .NET Core repo.

Can not find runtime target for framework 'DNXCore,Version=v5.0' and RID's 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes

I use 'dotnet restore' in the following error๏ผš
log : Restoring packages for D:\core\samples\dotnetbot\project.json...
error: Unable to resolve NETStandard.Library (>= 1.0.0-rc2-23704) for DNXCore,Version=v5.0.
info : Committing restore...
log : Restore failed in 312ms.
Errors in D:\core\samples\dotnetbot\project.json
Unable to resolve NETStandard.Library (>= 1.0.0-rc2-23704) for DNXCore,Version=v5.0.
NuGet Config files used:

I use 'dotnet run' in the following error๏ผš
Can not find runtime target for framework 'DNXCore,Version=v5.0' and RID's 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes:

  1. Project is not restored or restore failed - run dotnet restore
  2. Project is not targeting runable framework (netstandardapp* or net*)

How do I fix it

System.AddIn (plugin) support with .Net core

I am curious if there is expected to be support for System.AddIn (in whatever namespace) for .Net core? I took a look at http://packagesearch.azurewebsites.net/ and did not find a match and I was not able to find any namespaces that looked like they are *.AddIn in this repo and a few others. I might not be looking in the right place. If so would you please direct me to the correct place. Although I can follow examples from StackOverflow or other places and recreate this using Activator.CreateInstance I would prefer to use built in tech first.

Page needs clarity for people brand-new to .NET Core

Listing the issues here on a per-section basis.

Get Started

What is .NET Core? link leads to another landing page, not something that tells me what .NET Core is.

.NET Core Platform

Text here references BCL - a newcomer to .NET probably doesn't understand the acronym (I didn't until I looked it up online)

License

This section describes multiple licenses, so the plural form should probably be used here.

Understand the relationship between .NET Core and the .NET Framework.

  • The whole first paragraph needs to be rewritten. After re-reading it a few times, I'm still not sure about what it's telling me. Is .NET Core a part of .NET Framework? Does .NET Framework call into .NET Core? Describing their relationship as a subset-superset is confusing.
  • The last sentence isn't really helpful. I'm already assuming Microsoft is improving these components.

Learning about ASP.NET and .NET Core

"ASP.NET is the new cross-platform version of ASP.NET" is confusing. I understand that one is a link to the "new" ASP.NET, but referring to two different things with the same name is confusing.

VS2015 Class Library?

When trying to add a new project to an existing solution, I cannot see .NET Core as an option.

Is there any template for this in the works? Or any information how to add a new project manually using the CLI? Can't find anything on the documentation.

Unable to resolve project when path contains non-english character...

I'm testing my test project on mac(El Capitan).
when my project path contains CJK asian character,
I can't run local web server.

mymac$ pwd
/Volumes/ํ•œ๊ธ€๊ฒฝ๋กœ/projects/aspnet_test
mymac$ dnx web
Error: Unable to resolve project from /Volumes/ํ•œ๊ธ€๊ฒฝ๋กœ/projecไงฐแฟจ

should I change english character only path for resolve this problem?
I hope to run and test asp.net project in any path may contains asian characters. o_o

Not Able to find the feature Add Service Reference

Hi,

I created a new solution on the new Visual Studio 2015 and created a dll Library(Package).
When I try to add a reference to a webservice(wsdl), I am unable to add the service reference the right click on the references only has the following options:

  1. Add Reference
  2. Add Connected Service
  3. ManageNuget Package
  4. Restore Packages
    Has anyone faced the same issue?
    Is there anyway to configure the application to display this feature(add service reference)?

Thanks,

Is it possible to get native compilation of FSharp ConsoleApp?

So I successfully native compiled some C# code on ubuntu. And I am wondering.. Is it possible for FSharp?
First I got some code from VS2015 on my Win10 for default ConsoleApp in F#. Removed all unnecessary dependencies. It needed only FSharp.Core, so i found its version on nuget.org and then
I tried this code:
Program.fs:

[<EntryPoint>]
let main argv =
    printfn "HelloWorld2"
    0

with
project.json

{
    "version": "1.0.0-*",
    "frameworks": {
        "dnxcore50": {
            "dependencies": {
                "FSharp.Core": "4.0.0.1"
            }
        }
    }
}

But when trying 'dotnet compile --native' I get:

root@ubuntu:/opt/dotnet/core/samples/fsharp# dotnet compile --native
Compiling fsharp for DNXCore,Version=v5.0
/opt/dotnet/core/samples/fsharp/warning CS2008: No source files specified.
/opt/dotnet/core/samples/fsharp/warning CS8021: No value for RuntimeMetadataVersion found. No assembly containing System.Object was found nor was a value for RuntimeMetadataVersion specified through options.

Compilation succeeded.
    2 Warning(s)
    0 Error(s)

Time elapsed 00:00:00.9048438

Input Assembly: /opt/dotnet/core/samples/fsharp/bin/Debug/dnxcore50/fsharp.dll
/usr/share/dotnet/bin/libbootstrapper.a(main.cpp.o): In function `main':
(.text+0xb3b): undefined reference to `__managed__Main'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Compilation of intermediate files failed.

Which compiles it into fsharp.dll in /bin/Debug, but no native code is available from this.
So I tried to add these lines into project.json:

"compilationOptions": {
        "emitEntryPoint": true
    },

But then I get error:

root@ubuntu:/opt/dotnet/core/samples/fsharp# dotnet compile --native
Compiling fsharp for DNXCore,Version=v5.0
/opt/dotnet/core/samples/fsharp/warning CS2008: No source files specified.
/opt/dotnet/core/samples/fsharp/warning CS8021: No value for RuntimeMetadataVersion found. No assembly containing System.Object was found nor was a value for RuntimeMetadataVersion specified through options.
/opt/dotnet/core/samples/fsharp/error CS5001: Program does not contain a static 'Main' method suitable for an entry point

Compilation failed.
    2 Warning(s)
    1 Error(s)

Time elapsed 00:00:00.7057666

So. How do I tell compiler to find source at Program.fs and to compile it into binary with entrypoint at main function? Is it possible?
Thanks

System.Net.Http.CurlException: Peer certificate cannot be authenticated with given CA certificates

I have managed to install and run dnu restore on openSUSE 13.2 as detailed in #37. The problem is that I am getting the following error whenever I try and run the above command :

System.Net.Http.HttpRequestException: An error occurred while sending the request. --->    System.Net.Http.CurlException: Peer certificate cannot be authenticated with given CA certificates

It seems to be an issue of curl not having the CA bundle, but the curl command works just fine for HTTPS.

curl --version
curl 7.46.1-DEV (x86_64-suse-linux-gnu) libcurl/7.46.1-DEV GnuTLS/3.5.0 zlib/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets

I have also seen this wcf#438. What is the status of this issue?

FX Dependencies Not Found in OSX

I downloaded and installed on El Capitan the Mac package, located here, https://get.asp.net.

Then I checked out this sample:
https://github.com/aspnet/Home/tree/dev/samples/1.0.0-rc1-final/HelloMvc

Then I ran:

dnu restore
dnu build

I got these errors:

...
Using Package dependency System.Threading 4.0.0
    Source: /Users/joshuapearce/.dnx/packages/System.Threading/4.0.0

  Unable to resolve dependency fx/mscorlib 

  Unable to resolve dependency fx/System 

  Unable to resolve dependency fx/System.Core 

  Unable to resolve dependency fx/Microsoft.CSharp 

  Unable to resolve dependency fx/System.IO 

  Unable to resolve dependency fx/System.Security 

  Unable to resolve dependency fx/System.Xml 

  Unable to resolve dependency fx/System.Xml.Linq 

  Unable to resolve dependency fx/System.Runtime 

  Unable to resolve dependency fx/System.ComponentModel.DataAnnotations 

  Unable to resolve dependency fx/System.Collections 

  Unable to resolve dependency fx/System.Text.Encoding 

  Unable to resolve dependency fx/System.Threading.Tasks 

  Unable to resolve dependency fx/System.Collections.Concurrent 
...

UWP app store submission fails due to certification after 3rd party library integration

Hi,

  • I have got an app which is already on the store (for QA) and I am trying to submit an update for after integrating a 3rd party voip library.
  • Submission failed due to certification problem caused by the 3rd party library apparently (please see attached screenshot)

store rejecting voip lib

  • The store suggests the certification tool be used to fix any signature issue. However, the certification tool does not work as it only takes Xap, Appx or AppxBundle while the binary Iโ€™m trying to upload is AppxUpload (which was working fine before)
  • Link recommended to follow (from the store submission logs): https://msdn.microsoft.com/library/windows/apps/hh694081.aspx
  • I suspect the issue happened when I decided to set AppxPackageSigningEnabled to false in MSBuild command (it was true before and submission used to work fine). If that flag was kept to true (after integrating the voip library), the MSBuild command would fail (please see attached screenshot).
  • The command used was:
    MSBuild .\MyApp.sln /t:Rebuild /p:Configuration=Release /p:Platform=ARM /p:PreBuildEvent= /p:AppxPackageIsForStore=true /p:UapAppxPackageBuildMode=CI /p:AppxPackageSigningEnabled=false

msbuild signature failure

  • The bit that is failing in the voip library is a service (that runs in the background). I was using the same main project certificate to sign it before I decided to turn off the AppxPackageSigningEnabled flag since the approach did not work!
  • I am not sure whether there is any requirement third-party libraries need to fulfill. Is there anything we, as developers, need to know (and forward to that voip library tech team) regarding a third-party service certification for store submission? Or is it something I am doing wrong in the MSBuild command?

Please feel free to move this issue to any category you think is more suitable (can't find store-related issue entry).

Any help would be appreciated :)

Thanks!
Hisham

"Get started" is not working as expected on OSX

I followed all the steps describer in http://dotnet.github.io/getting-started/ for OSX

And here what I see in console after running "dotnet run"

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Console, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

dotnet restore for f# missing reference

Hi,

I tried to create a F# project on Mac OsX Yosemite with the latest .Net Core.

NET Command Line Tools (1.0.0-beta-001598)

Product Information:
Version: 1.0.0-beta-001598
Commit Sha: 7582649f88

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
Runtime Id: osx.10.11-x64

The creation works fine, but when I tried to run the restore, I'm getting everytime an error:

NotFound https://myget-2e16.kxcdn.com/artifacts/fsharp-daily/nuget/v3/flatcontainer/microsoft.netcore.platforms/index.json

This is the verbose log of the restore command:og : Restoring packages for

/Users/palutz/Projects/fsharp/dotnetcore01/project.json...
info : CACHE https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/microsoft.netcore.platforms/index.json
info : CACHE https://api.nuget.org/v3-flatcontainer/microsoft.netcore.platforms/index.json
info : GET https://myget-2e16.kxcdn.com/artifacts/fsharp-daily/nuget/v3/flatcontainer/microsoft.netcore.platforms/index.json
info : NotFound https://myget-2e16.kxcdn.com/artifacts/fsharp-daily/nuget/v3/flatcontainer/microsoft.netcore.platforms/index.json 595ms
info : Committing restore...
log : Restore completed in 1577ms.

NuGet Config files used:
/Users/palutz/Projects/fsharp/dotnetcore01/NuGet.Config
/Users/palutz/.nuget/NuGet/NuGet.Config

Feeds used:
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
https://api.nuget.org/v3/index.json
https://www.myget.org/F/fsharp-daily/api/v3/index.json

I don't know if this is the reason why also the compile (run) is not working after.

Regards,
Stefano

.NET Core native compilation fails with "No such file or directory"

Steps to reproduce the problem:

docker run -it --rm --name dotnet -w /root/myapp microsoft/dotnet bash
export DOTNET_HOME=/usr/share/dotnet/
dotnet init
dotnet restore
dotnet compile
bin/Debug/dnxcore50/myapp

outputs Hello World!

But when running a native compilation:

dotnet compile -n

generates:

....
Compiling [System.Private.CoreLib]System.Runtime.InteropServices.InteropExtensions.MightBeBlittable
No such file or directory

Could please someone help with this? Are there any relevant compilation logs generated? Am I doing something wrong?

Make use of Code Contracts where ever applicable

I wonder the reason why while the code contracts are part of BCL and it is a research project of Microsoft, only some of the API makes use of it. This this is effectively preventing making use of code contracts for the end consumers as well.
I would appreciate at least if you can make use of Code Contracts on the public surface API.

How to run published console app?

Let's say I have a hello world application named helloworld.

I ran dotnet restore then dotnet publish. This appears:

Publishing helloworld for .NETCoreApp,Version=v1.0
Project helloworld (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
publish: Published to C:\Ryan\helloworld\bin\Debug\netcoreapp1.0\publish
Published 1/1 projects successfully

In the folder I have:

helloworld.deps.json
helloworld.dll
helloworld.pdb
helloworld.runtimeconfig.json

Looks compiled to me but doesn't seem to be an exe file.

How to run this? Or is there a special compilation flag that outputs executable?

Thanks in advance!

Hello World under standard user fails with Ubuntu/GNOME

I don't know if the Getting Started steps are implied to be run as root (they don't appear to be because the installation steps specify sudo), but I get a variety of permissions errors when attempting to run dotnet run as a standard non-root user under Ubuntu with GNOME. It looks like Hello World is trying to access hidden directories.

It started with my .gvfs from my HOME directory and, after granting permissions to it, continued with .cache/dconf. I stopped there.

sudo dotnet run works fine. However, I'm curious if anyone knows why the steps don't work OOTB. Thanks.

Ubuntu 15.10 Errors during 'dotnet restore'

Am I actually asking M$ for Linux help? Dear God help me...

I get a series of "features" when issuing a 'dotnet restore' command on version 15.10:

`drew@drew-ubuntu:~/hwapp$ dotnet restore
log : Restoring packages for /home/drew/hwapp/project.json...
error: Microsoft.Win32.Primitives 4.0.1-rc2-23811 provides a compile-time reference assembly for Microsoft.Win32.Primitives on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.AppContext 4.1.0-rc2-23811 provides a compile-time reference assembly for System.AppContext on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Collections 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Collections on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Console 4.0.0-rc2-23811 provides a compile-time reference assembly for System.Console on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Diagnostics.Debug 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Diagnostics.Debug on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Diagnostics.Tools 4.0.1-rc2-23811 provides a compile-time reference assembly for System.Diagnostics.Tools on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Diagnostics.Tracing 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Diagnostics.Tracing on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Globalization 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Globalization on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Globalization.Calendars 4.0.1-rc2-23811 provides a compile-time reference assembly for System.Globalization.Calendars on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.IO 4.1.0-rc2-23811 provides a compile-time reference assembly for System.IO on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.IO.FileSystem 4.0.1-rc2-23811 provides a compile-time reference assembly for System.IO.FileSystem on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Net.Primitives 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Net.Primitives on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Net.Sockets 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Net.Sockets on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Reflection 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Reflection on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Reflection.Extensions 4.0.1-rc2-23811 provides a compile-time reference assembly for System.Reflection.Extensions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Reflection.Primitives 4.0.1-rc2-23811 provides a compile-time reference assembly for System.Reflection.Primitives on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Reflection.TypeExtensions 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Reflection.TypeExtensions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Runtime 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Runtime on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Runtime.Extensions 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Runtime.Extensions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Runtime.Handles 4.0.1-rc2-23811 provides a compile-time reference assembly for System.Runtime.Handles on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Runtime.InteropServices 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Runtime.InteropServices on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Runtime.InteropServices.RuntimeInformation 4.0.0-rc2-23811 provides a compile-time reference assembly for System.Runtime.InteropServices.RuntimeInformation on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Text.Encoding 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Text.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Text.Encoding.Extensions 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Text.Encoding.Extensions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Threading 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Threading on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Threading.Tasks 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Threading.Tasks on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: System.Threading.Timer 4.0.1-rc2-23811 provides a compile-time reference assembly for System.Threading.Timer on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
error: Some packages are not compatible with DNXCore,Version=v5.0 (ubuntu.15.10-x64).
info : Committing restore...
log : /home/drew/hwapp/project.json
log : Restore failed in 582ms.

Errors in /home/drew/hwapp/project.json
Microsoft.Win32.Primitives 4.0.1-rc2-23811 provides a compile-time reference assembly for Microsoft.Win32.Primitives on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.AppContext 4.1.0-rc2-23811 provides a compile-time reference assembly for System.AppContext on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Collections 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Collections on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Console 4.0.0-rc2-23811 provides a compile-time reference assembly for System.Console on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Diagnostics.Debug 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Diagnostics.Debug on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Diagnostics.Tools 4.0.1-rc2-23811 provides a compile-time reference assembly for System.Diagnostics.Tools on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Diagnostics.Tracing 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Diagnostics.Tracing on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Globalization 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Globalization on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Globalization.Calendars 4.0.1-rc2-23811 provides a compile-time reference assembly for System.Globalization.Calendars on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.IO 4.1.0-rc2-23811 provides a compile-time reference assembly for System.IO on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.IO.FileSystem 4.0.1-rc2-23811 provides a compile-time reference assembly for System.IO.FileSystem on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Net.Primitives 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Net.Primitives on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Net.Sockets 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Net.Sockets on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Reflection 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Reflection on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Reflection.Extensions 4.0.1-rc2-23811 provides a compile-time reference assembly for System.Reflection.Extensions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Reflection.Primitives 4.0.1-rc2-23811 provides a compile-time reference assembly for System.Reflection.Primitives on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Reflection.TypeExtensions 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Reflection.TypeExtensions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Runtime 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Runtime on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Runtime.Extensions 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Runtime.Extensions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Runtime.Handles 4.0.1-rc2-23811 provides a compile-time reference assembly for System.Runtime.Handles on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Runtime.InteropServices 4.1.0-rc2-23811 provides a compile-time reference assembly for System.Runtime.InteropServices on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Runtime.InteropServices.RuntimeInformation 4.0.0-rc2-23811 provides a compile-time reference assembly for System.Runtime.InteropServices.RuntimeInformation on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Text.Encoding 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Text.Encoding on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Text.Encoding.Extensions 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Text.Encoding.Extensions on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Threading 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Threading on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Threading.Tasks 4.0.11-rc2-23811 provides a compile-time reference assembly for System.Threading.Tasks on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
System.Threading.Timer 4.0.1-rc2-23811 provides a compile-time reference assembly for System.Threading.Timer on DNXCore,Version=v5.0, but there is no run-time assembly compatible with ubuntu.15.10-x64.
Some packages are not compatible with DNXCore,Version=v5.0 (ubuntu.15.10-x64).

NuGet Config files used:
/home/drew/.nuget/NuGet/NuGet.Config

Feeds used:
https://api.nuget.org/v3/index.json
drew@drew-ubuntu:~/hwapp$`

How to alias a package?

Previously, when we have a same namespace class sits in different dll files we can use extern alias to distinguish them.

I don't know how to deal with nuget package in project.json file.

An example will be

Severity Code Description Project File Line
Error CS0433 The type 'HMACSHA1' exists in both 'System.Security.Cryptography.Algorithms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Security.Cryptography.Hashing.Algorithms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Hema.Auth.Identity.DNX Core 5.0

Cannot be installed alongside mono

The executable /usr/bin/resgen tend to be used by both dotnet and mono-devel package in ubuntu. So it is unable to install dotnet if you have mono already installed.

Maybe consider using another name for it, like dotnet-resgen, or to utilize the update-alternative command in ubuntu to provide different resgen as user configured.

Getting Started not working on OS X 10.11.3

Hi all,

I get an exception when trying to run 'dotnet restore':

$ mkdir hwapp
$ cd hwapp
$ dotnet new
Created new C# project in /Users/asr/hwapp.
$ dotnet restore
log : Restoring packages for /Users/asr/hwapp/project.json...
error: The type initializer for 'Crypto' threw an exception.
error: Unable to load DLL 'System.Security.Cryptography.Native': The specified module could not be found.
error: (Exception from HRESULT: 0x8007007E)

This happens after installing the dotnet-osx-64.1.0.0.001598 installer package.

Does anybody know what's causing this issue?

Thanks
Andreas

Window example?

There is an example to create a form.

using System;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DemoApplication
{
    public class Program
    {
        public static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
    }
}

The propject.son

{
    "version": "1.0.0-*",
    "compilationOptions": {
        "emitEntryPoint": true
    },

    "dependencies": {
        "Microsoft.NETCore.Runtime": "1.0.1-beta-*",
        "System.Runtime": "4.0.21-beta-*",
        "System.ComponentModel": "4.0.1-beta-*",
        "System.Threading.Tasks": "4.0.11-beta-*",
        "System.Windows.Forms": "4.0.0.0",
        "System.Data": "4.0.0.0",
        "System.Drawing": "4.0.0.0",
        "System.Text": "4.0.0.0"
    },

    "frameworks": {
        "dnxcore50": { }
    }
}

To restore, dependencies not found:

me@machine:~/dnet$ dotnet restore
Microsoft .NET Development Utility CoreClr-x64-1.0.0-rc1-16048

  CACHE https://api.nuget.org/v3/index.json
Restoring packages for /home/me/dnet/project.json
  CACHE https://api.nuget.org/v3-flatcontainer/microsoft.netcore.runtime/index.json
  CACHE https://api.nuget.org/v3-flatcontainer/system.runtime/index.json
  CACHE https://api.nuget.org/v3-flatcontainer/system.componentmodel/index.json
  CACHE https://api.nuget.org/v3-flatcontainer/system.threading.tasks/index.json
  GET https://api.nuget.org/v3-flatcontainer/system.windows.forms/index.json
  GET https://api.nuget.org/v3-flatcontainer/system.data/index.json
  GET https://api.nuget.org/v3-flatcontainer/system.drawing/index.json
  GET https://api.nuget.org/v3-flatcontainer/system.text/index.json
  NotFound https://api.nuget.org/v3-flatcontainer/system.data/index.json 1435ms
  NotFound https://api.nuget.org/v3-flatcontainer/system.text/index.json 1434ms
  NotFound https://api.nuget.org/v3-flatcontainer/system.drawing/index.json 1435ms
  NotFound https://api.nuget.org/v3-flatcontainer/system.windows.forms/index.json 1498ms
Unable to locate Dependency System.Data >= 4.0.0
Unable to locate Dependency System.Drawing >= 4.0.0
Unable to locate Dependency System.Windows.Forms >= 4.0.0
Unable to locate Dependency System.Text >= 4.0.0
Writing lock file /home/me/dnet/project.lock.json
Restore complete, 1999ms elapsed

NuGet Config files used:
    /home/me/.config/NuGet/NuGet.Config

Feeds used:
    https://api.nuget.org/v3-flatcontainer/

Errors in /home/whk/Escritorio/dnet/project.json
    Unable to locate Dependency System.Data >= 4.0.0
    Unable to locate Dependency System.Drawing >= 4.0.0
    Unable to locate Dependency System.Windows.Forms >= 4.0.0
    Unable to locate Dependency System.Text >= 4.0.0

Add BigInteger(string value) in System.Numerics

Hello,

I would like to initialize BigInteger instances with string values, like I'm used to from java.

  1. Would you accept such an addition to the Framework?
  2. In case you would, which project should I fork in order to create the patch?

Thank you in advance,
:panos

WEC2013 on ARM7

Hi,

any Chance to see .net core on ARM 7 Controllers, running WEC2013?

With best regards

Gerhard

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.