Giter Site home page Giter Site logo

microsoft / dotnet Goto Github PK

View Code? Open in Web Editor NEW
14.1K 14.1K 2.2K 3.12 MB

This repo is the official home of .NET on GitHub. It's a great starting point to find many .NET OSS projects from Microsoft and the community, including many that are part of the .NET Foundation.

Home Page: https://devblogs.microsoft.com/dotnet/

License: MIT License

HTML 95.70% C# 3.26% PowerShell 1.04%

dotnet's Introduction

.NET Home

This repository is a starting point to learn about and engage in .NET and .NET open source projects.

This repository is not an official .NET or .NET Framework support location, however, we will respond to issues filed here as best we can. Please file .NET product issues at main project repos below.

In this repository

Please contribute to this repository via pull requests

Finding .NET Open Source Projects

Here are some excellent community-maintained lists of projects & libraries:

There are many projects that you can use and contribute to, some of which are listed below. Please do contribute to these projects!

.NET

.NET Docs

.NET Framework

Xamarin

Community

Here is a short list of projects to check out:

There are additional templates available for dotnet new. For more information, see Available templates for dotnet new

.NET Foundation

Many .NET open source projects are part of the .NET Foundation. Microsoft has contributed many projects, including ASP.NET Core and .NET Core. You may want to consider joining the .NET Foundation.

Check out the .NET Foundation Forums to see what others are talking about, or start a new discussion to ask a question or make a point.

License

This repository is licensed with the MIT license.

dotnet's People

Contributors

alexghiondea avatar bleroy avatar bruceforstall avatar chlowell avatar conniey avatar danmoseley avatar hollyam avatar honggit avatar jbe2277 avatar joshfree avatar kalaskarsanket avatar lxiamail avatar mairaw avatar merriemcgaw avatar miguep avatar nakarnam avatar nikolamilosavljevic avatar noahfalk avatar preetikr avatar punker76 avatar richlander avatar rladuca avatar saurabh500 avatar scottisafool avatar slodge avatar svick avatar taraoverfield avatar terrajobst avatar tommcdon avatar vivmishra 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

dotnet's Issues

.NET 4.6.1 GC taking a lot of longer time than 4.5

Hi .NET Team,

I found .NET 4.6.1 is still not fix the bug of GC taking a lot of longer time than 4.5 on Windows Server 2008 R2 SP1, but there is no hotfix like as KB3088957 for .NET 4.6, so how can I do? thank you very much.

Problem running dotnet on Ubuntu 14.04

I followed the installation instructions at https://www.microsoft.com/net/core#ubuntu.

Facing the following issue:

dotnet new
Failed to resolve library symbol hostfxr_main, error: dotnet: undefined symbol: hostfxr_main
Segmentation fault (core dumped)

Additional information:

uname -a
Linux ubuntu 3.19.0-61-generic #69~14.04.1-Ubuntu SMP Thu Jun 9 09:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Erroroneous/empty git repo?

Hi,

I've just tried:

git clone [email protected]:Microsoft/dotnet.git /tmp/dotnet
find /tmp/dotnet/ -path /tmp/dotnet/.git -prune -o -type f | rev | cut -d . -f1 | rev | sort | uniq -ic | sort -rn

Grepping for something related to the project, but it does not show anything helpful (except for 4 md files, 1 license and git files).

Is this repo correct?

Including native libraries in dotnet projects

I have a legacy project that has a published a nuget package that looks like this:
image

Those are c++ dlls under the runtime folders, and it is not a dotnet/project.json project.

When I include this project as a dependency, I see these c++ dlls are included in the output dir when I perform a dotnet publish. however, they are not included in the output dir when I perform a dotnet build. This means that when I try to run my project in Visual Studio, it cannot find the required c++ libs, because they are not in the bin directory.

I have played around with copyToOutput includes and cannot seem to get these dlls to appear in output. Is there something broken or is this behaving as expected?

example project.json

{
  "version": "1.0.0-*",
  "packOptions": {
  },
  "buildOptions": {
    "outputName": "test.progect",
    "emitEntryPoint": false,
    "platform": "anycpu",
    "copyToOutput": {
      "include": [
        "**/*.json"
      ],
      "exclude": [
        "bin"
      ]
    }
  },
  "publishOptions": {
    "include": [
      "**/*.json"
    ],
    "exclude": [
      "bin"
    ]
  },
  "dependencies": {
    "ININ.Tracing-w64": "2.1.1.5",
    "RestSharp": "105.2.3"
  },
  "frameworks": {
    "net451": {
      "frameworkAssemblies": {
        "System.Runtime.Serialization": "4.0.0.0",
        "System.Xml": "4.0.0"
      }
    }
  },
  "configurations": {
    "Debug": {
      "buildOptions": {
        "define": [
          "DEBUG",
          "TRACE"
        ],
        "debugType": "portable"
      }
    },
    "Release": {
      "buildOptions": {
        "define": [
          "RELEASE",
          "TRACE"
        ],
        "optimize": true
      }
    },
    "win7-x64": {
      "buildOptions": {
        "define": [
          "DEBUG",
          "TRACE"
        ],
        "debugType": "portable"
      }
    }
  }
}

LambdaCompiler

I found the Microsoft LambdaCompiler used e.g. by Moq is much slower in 64bit compared to 32bit even with .net 4.6 RyuJit. Where do I address this issue?

Unexpected character encountered while parsing value: #

I'm getting the following error when setting up a new Windows 7 64-bit box (VS 2015 Preview 3, .Net 1.0.0-preview3-003612)

PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git C:\Program Files\dotnet\dotnet.exe restore "D:\ProDev\Dev\ERMA\.vs\restore.dg" error: Error reading 'D:\ProDev\Dev\ERMA\.vs\restore.dg' at line 0 column 0 : Unexpected character encountered while parsing value: #. Path '', line 0, position 0. error: Unexpected character encountered while parsing value: #. Path '', line 0, position 0.

I tried to alter restore.dg and remove the commented out lines but it gets generated automatically every time I try to restore packages (see below):
`#:D:\ProDev\Dev\ERMA\ERMA.Web\ERMA.Web.xproj
D:\ProDev\Dev\ERMA\ERMA.Web\ERMA.Web.xproj|D:\ProDev\Dev\ERMA\ERMA.Web.Models\ERMA.Web.Models.xproj

:D:\ProDev\Dev\ERMA\ERMA.Web.Test\ERMA.Web.Test.xproj

D:\ProDev\Dev\ERMA\ERMA.Web.Test\ERMA.Web.Test.xproj|D:\ProDev\Dev\ERMA\ERMA.Web\ERMA.Web.xproj
D:\ProDev\Dev\ERMA\ERMA.Web\ERMA.Web.xproj|D:\ProDev\Dev\ERMA\ERMA.Web.Models\ERMA.Web.Models.xproj`

Add python support to VS. I don't want other crappy IDEs handling my python code anymore make a python IDE part of VS

Like what I said above all the IDEs I find are slow to load for me the VS ones load faster than Photoshop CS6. So, I need such IDE that is great, knows what to highlight, and also knows other languages as well. and is better than Notepad++. As well as a way to debug python code in it and ways that is suggests on making it better as well as a simple way of python 2.x to 3.x conversion without less of functionality. Sadly I have some python 2 code that uses some bytes things that python 3 does not let me use.

.NET 4.6.2 with Windows 8

ΒΏIs there a reason why Windows 8 has been discarded from the Supported Operating System list of .NET 4.6.2? I have installed the update successfully in a Windows 8 Enterprise 64bits.

dotnet command in Docker container does not return

I tried to run dotnet restore, dotnet run and dotnet new in a Ubuntu container using the published microsoft/dotnet image. The commands run successfully but do not return; the command line hangs and I have to exit and re-enter the container. When I re-enter, I can see the files have been created successfully.

Command Line generated projects into Visual Studio

Hi, I followed the tips on this web link:
http://dotnet.github.io/getting-started/
Both the Windows and Docker samples run successfully, my question is: how to convert the command line generated projects(with project.json and nuget files) into Visual Studio so that I could use this powerful IDE? When I created the DNX project in Visual Studio and copied the src folder into DOCKER, and run the dotnet restore/run, it generated errors:
Errors in /home/hello/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 ubuntu.14.04-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 ubuntu.14.04-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 ubuntu.14.04-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 ubuntu.14.04-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 ubuntu.14.04-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 ubuntu.14.04-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 ubuntu.14.04-x64.
Some packages are not compatible with DNXCore,Version=v5.0 (ubuntu.14.04-x64).

NuGet Config files used:
/home/hello/hello_world/NuGet.Config
/root/.nuget/NuGet/NuGet.Config

Feeds used:
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
https://api.nuget.org/v3/index.json
root@57b37f07a735:/home/hello# dotnet run
Project hello (DNXCore,Version=v5.0) will be compiled because some of its inputs were newer than its oldest output.
Compiling elloor
NXCore,Version=v5.0
sr/share/dotnet/bin/dotnet compile-csc @/home/hello/obj/Debug/dnxcore50/dotnet-compile.rsp returned Exit Code 1
/home/hello/hello_world/obj/Debug/dnxcore50/dotnet-compile.assemblyinfo.cs(2,11): error CS0579: Duplicate 'System.Reflection.AssemblyFileVersionAttribute' attribute
/home/hello/hello_world/obj/Debug/dnxcore50/dotnet-compile.assemblyinfo.cs(3,11): error CS0579: Duplicate 'System.Reflection.AssemblyVersionAttribute' attribute

[39;49mCompilation failed.
0 Warning(s)
2 Error(s)

CNG key providers to Mage and Mageui SDK tools fails on XBAP compile

In v4.6.2 Framework under the Windows Forms changes, the following change is not working

  • Added support for CNG key providers to Mage and Mageui SDK tools [194373]

When compiling a WPF Solution as an XBAP application where the Project file contains a PropertyGroup with the HostInBrowser value set to True and using an RSA SHA2 CNG Certificate for Code Signing, the compilation fails the SignFile Task with error MSB3482.

This is the same error message that would be put out from the mage.exe utility prior to including support for the CNG Certificates.

True

1>Target "ResignApplicationManifest" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets" from project "C:\Test\CNGTest.csproj" (target "GenerateManifests" depends on it):
1>Task "Message" skipped, due to false condition; ('$(MSBuildTargetsVerbose)'=='true') was evaluated as (''=='true').
1>Task "Message" skipped, due to false condition; ('$(MSBuildTargetsVerbose)'=='true') was evaluated as (''=='true').
1>Task "Message" skipped, due to false condition; ('$(MSBuildTargetsVerbose)'=='true') was evaluated as (''=='true').
1>Task "SignFile"
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets(614,9): error MSB3482: An error occurred while signing: Invalid provider type specified.

Program with enabled RyuJit and enabled tail cals optimization produces incorrect result

We have a simple program

[<EntryPoint>]
let main argv = 
    let zero = bigint(0)
    let one = bigint(1)
    let rec ack (m:bigint) (n:bigint) cnt =
            if m = zero then cnt(n + one)
            elif n = zero then ack (m-one) one cnt
            else (ack m (n-one) (fun x -> ack (m-one) x cnt))

    ack (bigint(3)) (bigint(1))  id |> printfn "%A"
    0 // return an integer exit code

Compile it as
fsc.exe Program.fs --tailcalls+
This code works correct only when we run it with <useLegacyJit enabled="1" />.

Expected behavior(with <useLegacyJit enabled="1" />)

Output:13

Actual behavior(without <useLegacyJit enabled="1" />)

Output:1

Related information

Original issue in fsharp repo

  • Windows
  • .NET Runtime CLR v4.0.30319
  • Visual Studio 2015
  • F# Interactive version 14.0.23413.0
  • F# version 4.0 Fsharp.Core 4.4.0.0

what is this ?

where can i find the code ?
you created this repo for documentation only ?

The fully qualified file name must be less than 260 characters, and the directory name must be less than 248

I have moved my project folder to C:\V7 a short one, I keep getting the error below when trying to publish my web app to Azure web app. Can the message below at least show whitch file has long file name?

How to solve this issue?

Thanks
Gary

Microsoft .NET Development Utility CLR-x86-1.0.0-beta7-15019
Copying to output path C:\Users\gzhan_000\AppData\Local\Temp\PublishTemp\PrimeObjects.Platform.Web65

System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetDirectoryName(String path)
at Microsoft.Dnx.Tooling.Publish.PublishOperations.ExtractFiles(ZipArchive archive, String targetPath, Func2 shouldInclude) at Microsoft.Dnx.Tooling.Publish.PublishOperations.ExtractNupkg(ZipArchive archive, String targetPath) at Microsoft.Dnx.Tooling.NuGetPackageUtils.ExtractPackage(String targetPath, FileStream stream) at Microsoft.Dnx.Tooling.NuGetPackageUtils.<>c__DisplayClass0_0.<<InstallFromStream>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Dnx.Runtime.Internal.ConcurrencyUtilities.<ExecuteWithFileLocked>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dnx.Tooling.NuGetPackageUtils.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dnx.Tooling.Packages.AddCommand.d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dnx.Tooling.Publish.PublishPackage.Emit(PublishRoot root)
at Microsoft.Dnx.Tooling.Publish.PublishRoot.Emit()
at Microsoft.Dnx.Tooling.Publish.PublishManager.Publish()
at Microsoft.Dnx.Tooling.PublishConsoleCommand.<>c__DisplayClass0_0.b__1()
at Microsoft.Dnx.Runtime.Common.CommandLine.CommandLineApplication.Execute(String[] args)
at Microsoft.Dnx.Tooling.Program.Main(String[] args)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider)
at Microsoft.Dnx.Host.Bootstrapper.RunAsync(List`1 args, IRuntimeEnvironment env, FrameworkName targetFramework)
at Microsoft.Dnx.Host.RuntimeBootstrapper.ExecuteAsync(String[] args, FrameworkName targetFramework)
at Microsoft.Dnx.Host.RuntimeBootstrapper.Execute(String[] args, FrameworkName targetFramework)
at Microsoft.DNX.Tasks.Dnu.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()

Memory Mapped File access : the file is being used by another process

I am trying to use MemoryMappedFile to write some bulk data from the database. Whenever I am running application in a single instance,it works perfectly well-as the writing is taking place sequentially. But whenever I am trying to run the same application in multi-instance mode,it is failing to write to the file. If one instance is writing data to the file,the other instance which got instantiated in parallel is unable to access this file.

I looked at the file.cs class in the framework but I could not find a property or method which can give me information if the file is free to be written i.e.,it is not being used by any other process.

Could someone help me -how do I check if the file is not being used by any other process?

public static void WriteToMMF(string fileName, byte[] records, long? beginOffset, long? endOffset)
{
//create MMF
try
{
using (var writeMMF = MemoryMappedFile.CreateFromFile(fileName, FileMode.OpenOrCreate, "OutboundMMF", endOffset.Value))
{
using (MemoryMappedViewAccessor accessor = writeMMF.CreateViewAccessor())
{
accessor.WriteArray(beginOffset.Value, records, 0, records.Length);

                }
            }
        }
        catch (Exception ex)
        {

            throw ex;

        }
    }

Speech Library - Check!

Hi,

Taking the opportunity, I am stuck at speech.synthesis library. I am creating a website, in which i want to use speech.synthesis library to convert text/content into voice format (.MP3). It works fine in desktop but does not work on WEB nor on IIS server.

If you have any other alternative please do help!

Best,

Bhargav Gandhi

Progressive JPEG

Hi,

the question comes up every now and then: will System.Graphics.Bitmap somewhen be able to save progressive JPEGs? Which github repository is the home of System.Graphics?

Which CLA?

Which CLA needs to be signed to contribute to .NET? Would be good to have this information in CONTRIBUTING.md.

Thanks a ton!

2 dotnet run command cannot work on ubuntu 14.04

First of all sorry my bad English.

My question is.. I cannot 2 dotnet run command on ubuntu. Please help me. I have a web project, running on ubuntu works perfect but now i added web api project but i cannot start 2 project at once.

Web api project program.cs file:

namespace KatmanWebAPI
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var host = new WebHostBuilder()
                .UseKestrel()
                .UseContentRoot(Directory.GetCurrentDirectory())
                .UseIISIntegration()
                .UseStartup<Startup>()
                .UseUrls("http://localhost:5021")
                .Build();

            host.Run();
        }
    }
}

And then webui project Program.cs file:

namespace KatmanWebUI
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var host = new WebHostBuilder()
                .UseKestrel()
                .UseContentRoot(Directory.GetCurrentDirectory())
                .UseIISIntegration()
                .UseStartup<Startup>()
                .UseUrls("http://localhost:5020")
                .Build();

            host.Run();
        }
    }
}

I enter in KatmanWebUI project folder and run dotnet run command works properly and going fine. Also i run this server 70 days without restart. But when runs KatmanWebUI project and then i am starting KatmanWebAPI project and then interfering each other. For example when starting a page from KatmanWebUI page and css is going down. Or some icons not showing and web site in not going properly.

My nginx file about server backend:

upstream backend {
        server 127.0.0.1:5020;
        server 127.0.0.1:5021;
        server 127.0.0.1:19920;
}

So how can i start 2 projects run properly. System is Ubuntu 14.04 LTS Trusty.

Wrong Currency in CultureInfo("lt-lt")

Lithuania switched to EURO (from Litas) since January 1st.
With .Net 4.6 when culture info is Lithuanian (lt-lt) it still gives Litas as currency.

Is there are any workarounds for that?

P.S. I assume this is the same for Latvia too. (they joined EURO too)

Different formats of dotnet461-api-changes.md and dotnet46-api-changes.md

releases/net461/dotnet461-api-changes.md is a markdown with fenced code block of diff format. It looks very nicely.
But releases/net46/dotnet46-api-changes.md is just an html despite its extension.
It would be nice to see the same format in both files.

p.s. also let me ask how do you generate such diff for api changes?

Consider changing / clarify PR wording in contributing.md

Was looking at contributing.md. Under "creating a PR", I saw two issues I wanted to discuss:

  1. Why is it important that the PR be created in a branch, as opposed to their master? Is it so that their master is clean if the PR is rejected?
  2. We probably want to use a pronoun other than "our", for point 5, but use something more general that doesn't connote ownership.

Microsoft .NET Framework Assistant

The Microsoft .NET Framework Assistant Firefox extension by Microsoft is the only connection between Firefox and the Common Language Runtime for .NET in order to run ClickOnce WebLaunchers from Firefox. Is the code for that also in this repository? Who controls the Microsoft account?

It works nicely, but in at least Firefox 30 through 36, There is no mention of .NET or CLR in the userAgent (anymore), and there is no application/x-ms-aplication mentioned in navigator.mimeTypes.

We would like to be able to detect the presence/availability of this ClickOnce extension, so we can switch in javascript between opening the plugin page or opening the WebLauncher. It could use an update to show itself to client side javascript, or maybe there's a secret someone forgot to tell me.

Failed to restore packages on Docker Build

I'm getting an error on a new web project (and a few others) with restoring packages. Not machine specific.

log  : Restoring packages for /app/project.json...
log  : Failed to download package from 'https://api.nuget.org/v3-flatcontainer/system.text.encodings.web/4.0.0/system.text.encodings.web.4.0.0.nupkg'.
log  : Response status code does not indicate success: 404 (Not Found).

Docker File

FROM microsoft/dotnet:latest

COPY . /app

WORKDIR /app

RUN ["dotnet", "restore"]

RUN ["dotnet", "build"]

EXPOSE 5000/tcp

ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]

Project created using

dotnet new -t web

Nothing else added.

Propose Adding Akka.NET to Developer Projects List

Akka.NET is an implementation of the Actor Model for the .NET Framework, enabling some really powerful distributed systems scenarios (self-healing systems, painless handling of concurrency / state, etc.) -- this description does not quite do it justice.

I'm not certain which category it belongs in -- hence why this is an issue instead of a PR. Perhaps @Aaronontheweb, @rogeralsing, or @skotzko could weigh in on that. But it's a valuable project adding an additional dimension to the .NET ecosystem and I think it's a great fit for this list.

Definition of Platforms category

I personally feel there's a big difference between "platform" projects delivering a platform inside applications (like MVVM projects), and projects like .NET Core and Mono, which deliver a .NET platform. Maybe that distinction makes sense for the project list?

Stop adding auto connection strings in config files

Somewhere 2 versions ago .NET started adding invisible automatic connection strings to application configuration files. Trying to retrieve the 0th Connection String would always return:

"data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"

Removing this behavior means a trip to the machine.config file for each installed .NET framework and removing this value from there.

Can we please have a patch that removes this behavior?

Do you planing make wiki documentation on GitHUB?

Hello,

What you think about documentation on GitHUB or example usages?

Now I can not search WIA or TWAIN example on .NET in Internet? How about write in Wiki with smaple code ready to compile?

Thanx.

Marshalling a returned struct with a boolean field crashes

This code:
using System.Runtime.InteropServices;

namespace TestMarshal
{
    public struct QVariant
    {
        [StructLayout(LayoutKind.Explicit, Size = 16)]
        public struct Internal
        {
            [FieldOffset(0), MarshalAs(UnmanagedType.I1)]
            public bool d;
        }

        [UnmanagedFunctionPointerAttribute(CallingConvention.ThisCall)]
        public delegate Internal _Interpolated_0Delegate(System.IntPtr instance);

        public static _Interpolated_0Delegate _Interpolated_0DelegateInstance;

        public static Internal _Interpolated_0DelegateHook(System.IntPtr instance)
        {
            return new Internal();
        }
    }

    class Program
    {
        static void Main()
        {
            QVariant._Interpolated_0DelegateInstance += QVariant._Interpolated_0DelegateHook;
            var functionPointerForDelegate = Marshal.GetFunctionPointerForDelegate(QVariant._Interpolated_0DelegateInstance);
            functionPointerForDelegate.GetHashCode();
        }
    }
}

crashes with:

"Method's type signature is not PInvoke compatible."

It crashes the same way if MarshalAs(UnmanagedType.I1) is added to the field.

I have tested this with .NET 4.0 and .NET 4.5.1, no difference in behaviour.
It works properly on Mono with or without a MarshalAs attribute.

custom dotnet

when is it possible to makee custom dotnet versions?

like packaging my own assemblies and the clr into 1 setup. ive heared it is planned

dotnet test : Could not load type 'LogMessageHandler'

Problem

Trying to run tests i got the exception below.

C:\MySolution>dotnet test project.json
Project MyProject1 (.NETStandard,Version=v1.6) was previously compiled. Skipping compilation.
Project MyProject2 (.NETStandard,Version=v1.6) was previously compiled. Skipping compilation.
Project MyProject3 (.NETStandard,Version=v1.6) was previously compiled. Skipping compilation.
Project MyProjectTest (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
Discovering Tests ...
Executing Tests ...
Failed   StatusTest
Error Message:
   Exception thrown while executing test. If using extension of TestMethodAttribute then please 
contact vendor. Error message: Could not load type 'LogMessageHandler' from assembly
'Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a'.
============ Test Run Summary ============
Total tests: 1. Passed: 0. Failed: 1. Skipped: 0
Test Run Failed.
SUMMARY: Total: 1 targets, Passed: 0, Failed: 1.

Informations

  • dotnet version: 1.0.0-preview2-003131
  • project.json:
{
  "version": "1.0.0-*",
  "testRunner": "mstest",

  "dependencies": {
    "MSTest.TestFramework": "1.0.5-preview",
    "Microsoft.NETCore.App": {
      "type": "platform",
      "version": "1.0.1"
    },
    "MyProject1": { "target": "project" },
    "dotnet-test-mstest": "1.1.1-preview"
  },

  "frameworks": {
    "netcoreapp1.0": {
      "imports": [ "portable-net451+win8", "dnxcore50" ]
    }
  }
}

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.