Skip to content

Commit

Permalink
Merge pull request #5 from razfriman/netstandard_commands
Browse files Browse the repository at this point in the history
Update to NetStandard for compatibility with .NET Core
  • Loading branch information
razfriman authored Jan 16, 2018
2 parents 9a13020 + 3a046d5 commit 1dc136b
Show file tree
Hide file tree
Showing 43 changed files with 542 additions and 920 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.suo
*.user
*.sln.docstates
*.userprefs

# Build results
[Dd]ebug/
Expand All @@ -16,6 +17,7 @@ build/
bld/
[Bb]in/
[Oo]bj/
[Pp]ackages/

# Roslyn cache directories
*.ide/
Expand Down Expand Up @@ -161,6 +163,9 @@ ClientBin/
*.pfx
*.publishsettings
node_modules/
.DS_Store
.AppleDouble
.LSOverride

# RIA/Silverlight projects
Generated_Code/
Expand All @@ -183,4 +188,4 @@ UpgradeLog*.htm
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/
FakesAssemblies/
6 changes: 0 additions & 6 deletions .nuget/NuGet.Config

This file was deleted.

Binary file removed .nuget/NuGet.exe
Binary file not shown.
133 changes: 0 additions & 133 deletions .nuget/NuGet.targets

This file was deleted.

6 changes: 0 additions & 6 deletions TeslaConsole/App.config

This file was deleted.

30 changes: 0 additions & 30 deletions TeslaConsole/Program.cs

This file was deleted.

36 changes: 0 additions & 36 deletions TeslaConsole/Properties/AssemblyInfo.cs

This file was deleted.

65 changes: 0 additions & 65 deletions TeslaConsole/TeslaConsole.csproj

This file was deleted.

29 changes: 29 additions & 0 deletions TeslaLib.Console/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
namespace TeslaLib.Console
{
public class Program
{
public static void Main(string[] args)
{
if (args.Length < 4)
{
System.Console.WriteLine("Not enough args. <clientId> <clientSecret> <email> <password>");
}
var clientId = args[0];
var clientSecret = args[1];
var email = args[2];
var password = args[3];

var client = new TeslaClient(email, clientId, clientSecret);
client.Login(password);

var vehicles = client.LoadVehicles();

foreach (TeslaVehicle car in vehicles)
{
System.Console.WriteLine(car.Id + " " + car.VIN);
}

System.Console.ReadKey();
}
}
}
11 changes: 11 additions & 0 deletions TeslaLib.Console/TeslaLib.Console.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\TeslaLib\TeslaLib.csproj" />
</ItemGroup>
</Project>
Loading

0 comments on commit 1dc136b

Please sign in to comment.