Click here to Skip to main content
15,900,110 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Best tools for my friend to make a website. Pin
Michael Breeden24-Apr-18 3:02
Michael Breeden24-Apr-18 3:02 
GeneralRe: Best tools for my friend to make a website. Pin
Munchies_Matt23-Apr-18 21:25
Munchies_Matt23-Apr-18 21:25 
GeneralRe: Best tools for my friend to make a website. Pin
Michael Breeden24-Apr-18 2:59
Michael Breeden24-Apr-18 2:59 
GeneralRe: Best tools for my friend to make a website. Pin
Marc Clifton24-Apr-18 1:03
mvaMarc Clifton24-Apr-18 1:03 
GeneralRe: Best tools for my friend to make a website. Pin
Arkitec24-Apr-18 20:55
professionalArkitec24-Apr-18 20:55 
GeneralRe: Best tools for my friend to make a website. Pin
Kirk 1038982125-Apr-18 3:38
Kirk 1038982125-Apr-18 3:38 
GeneralRe: Best tools for my friend to make a website. Pin
Michael Breeden25-Apr-18 3:55
Michael Breeden25-Apr-18 3:55 
RantMicrosoft Samples (useless) Pin
raddevus23-Apr-18 11:47
mvaraddevus23-Apr-18 11:47 
Microsoft samples are basically useless.
I've recently attempted to get some UWP samples working which will no longer build in current versions of Visual Studio -- because they change things so quickly. Studio doesn't even recognize the projects properly and things are missing that the project will not download, etc.

Now I was attempting to examine a DotNet Core sample.
1. They forced me to download over 500Mb to get to the one sample -- because their github repo is only at the very top of all of the samples, instead of allowing me to download the one sample I wanted.
2. Once I downloaded the sample the App (web app won't start) because the DotNet Core stuff has changes so much that the Program.cs is completely different that the app wouldn't run, just gave me a 502.5 error and said the app can't start. Hmmm | :|

As I was writing up this rant I guessed at what the problem might be...

I checked the CSPROJ file and found:
HTML
 <PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
  </PropertyGroup>
<PropertyGroup>
    <PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
    <PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" />
    <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
    <PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.1" />
    <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" />
    <PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.0" />
  </ItemGroup>
  <ItemGroup>
    <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0" />
  </ItemGroup>


I copied my working project's CSPROJ over the top of this one to update to dotnetcore 2.0
HTML
<PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <ApplicationIcon />
    <Win32Resource />
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.5" />
    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.2" />
  </ItemGroup>
  <ItemGroup>
    <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.2" />
  </ItemGroup>


After I did that I went to the command-line under the project and ran :
c:/> dotnet restore


I built and ran and it worked.
sheesh.

The Internet is cluttered up and needs a good spring cleaning.
GeneralRe: Microsoft Samples (useless) Pin
User 1106097923-Apr-18 11:52
User 1106097923-Apr-18 11:52 
GeneralRe: Microsoft Samples (useless) Pin
raddevus24-Apr-18 1:57
mvaraddevus24-Apr-18 1:57 
GeneralRe: Microsoft Samples (useless) Pin
RichardGrimmer24-Apr-18 5:19
RichardGrimmer24-Apr-18 5:19 
GeneralRe: Microsoft Samples (useless) Pin
PIEBALDconsult23-Apr-18 13:15
mvePIEBALDconsult23-Apr-18 13:15 
GeneralRe: Microsoft Samples (useless) Pin
Eddy Vluggen23-Apr-18 13:31
professionalEddy Vluggen23-Apr-18 13:31 
GeneralRe: Microsoft Samples (useless) Pin
Super Lloyd23-Apr-18 14:46
Super Lloyd23-Apr-18 14:46 
GeneralRe: Microsoft Samples (useless) Pin
raddevus24-Apr-18 1:56
mvaraddevus24-Apr-18 1:56 
GeneralRe: Microsoft Samples (useless) Pin
Super Lloyd24-Apr-18 16:05
Super Lloyd24-Apr-18 16:05 
GeneralRe: Microsoft Samples (useless) Pin
raddevus24-Apr-18 16:21
mvaraddevus24-Apr-18 16:21 
GeneralRe: Microsoft Samples (useless) Pin
Super Lloyd24-Apr-18 17:12
Super Lloyd24-Apr-18 17:12 
GeneralRe: Microsoft Samples (useless) Pin
theoldfool23-Apr-18 15:27
professionaltheoldfool23-Apr-18 15:27 
GeneralRe: Microsoft Samples (useless) Pin
raddevus24-Apr-18 1:56
mvaraddevus24-Apr-18 1:56 
GeneralRe: Microsoft Samples (useless) Pin
PIEBALDconsult24-Apr-18 5:52
mvePIEBALDconsult24-Apr-18 5:52 
GeneralRe: Microsoft Samples (useless) Pin
Kirk 1038982125-Apr-18 3:42
Kirk 1038982125-Apr-18 3:42 
GeneralRe: Microsoft Samples (useless) Pin
raddevus25-Apr-18 7:15
mvaraddevus25-Apr-18 7:15 
GeneralRe: Microsoft Samples (useless) Pin
Kirk 1038982125-Apr-18 7:52
Kirk 1038982125-Apr-18 7:52 
GeneralRe: Microsoft Samples (useless) Pin
raddevus25-Apr-18 8:04
mvaraddevus25-Apr-18 8:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   481 votes