10 Eylül 2018 Pazartesi

Program.cs(15, 28): [CS0017] Program has more than one entry point defined. Compile with /main to specify the type that contains the entry point.

Hi,
If you getting error after adding after adding Microsoft.NET.Test.Sdk Nuget package to project reference you can just add 
<GenerateProgramFile>false</GenerateProgramFile>
property in Project PropertyGroup in your .csproj file like screenshot. This will prevent multiple Main function conflict error. 



Share:

7 Eylül 2018 Cuma

1 Eylül 2018 Cumartesi

Error on connection registry.npmjs.org via npm update


Hi guys, if you get an error like below on npm update. You can set npm strict-ssl false on terminal by typing 

npm config set strict-ssl false


Hostname/IP does not match certificate's altnames: Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net

If problem didn't solved you can try set dns 8.8.8.8 at your /etc/resolv.conf for linux.
Share: