Browse Source

Add project files.

pull/2/head
Gregor Biswanger 8 years ago
parent
commit
383d15d104
  1. 25
      MyElectronMusicPlayer.sln
  2. 15
      MyElectronMusicPlayer/MyElectronMusicPlayer.csproj
  3. 25
      MyElectronMusicPlayer/Program.cs
  4. 27
      MyElectronMusicPlayer/Properties/launchSettings.json
  5. 34
      MyElectronMusicPlayer/Startup.cs

25
MyElectronMusicPlayer.sln

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2005
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyElectronMusicPlayer", "MyElectronMusicPlayer\MyElectronMusicPlayer.csproj", "{E63FE1C6-1DDF-4F07-8E37-2F1FE5725A21}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E63FE1C6-1DDF-4F07-8E37-2F1FE5725A21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E63FE1C6-1DDF-4F07-8E37-2F1FE5725A21}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E63FE1C6-1DDF-4F07-8E37-2F1FE5725A21}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E63FE1C6-1DDF-4F07-8E37-2F1FE5725A21}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C80B36BC-7988-4096-A4AE-EFC343C84ECE}
EndGlobalSection
EndGlobal

15
MyElectronMusicPlayer/MyElectronMusicPlayer.csproj

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
</ItemGroup>
</Project>

25
MyElectronMusicPlayer/Program.cs

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace MyElectronMusicPlayer
{
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
}
}

27
MyElectronMusicPlayer/Properties/launchSettings.json

@ -0,0 +1,27 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:53036/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"MyElectronMusicPlayer": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:53037/"
}
}
}

34
MyElectronMusicPlayer/Startup.cs

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
namespace MyElectronMusicPlayer
{
public class Startup
{
// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.Run(async (context) =>
{
await context.Response.WriteAsync("Hello World!");
});
}
}
}
Loading…
Cancel
Save