Skip to content

Conversation

@gpailler
Copy link
Collaborator

@gpailler gpailler commented Jan 20, 2017

I introduced new csproj files compatible with VS2017 RC (SlackApi.Netcore.csproj...) because format project.json is abandoned.
Nuget package contains net45, netstandard1.3 and netstandard1.6 assemblies (netstandard1.3 version doesn't support detection of RoutingMessage in external assemblies but is compatible with more platforms like UWP. See https://blogs.msdn.microsoft.com/dotnet/2016/09/26/introducing-net-standard/ for details)

To build using cake:

To summarize:

  • SlackApi.NetCore.sln, SlackApi.NetCore.csproj, SlackApi.Tests.NetCore.csproj are new files compatible with VS2017. If we have to add a reference, we have to do it in both VS2015 and VS2017 projects. If we add a file in VS2015 solution, it's automatically added in VS2017 (because new csproj supports wildcards)
  • Some files are updated to support all Frameworks (mainly reflection related stuff)
  • build.cake is a new file used to compile, test and pack SlackAPI
  • build.ps1 is a boostrapper from CakeBuild project
  • appveyor.yml is updated to install correct .NetCore version (not available on AppVeyor right now), use Cake script and publish artifacts on myGet. We can update the yml to publish artifacts on NuGet too

Note:

Updated code to fix compilation issues for .NetCore
Introduced cake.build file to handle compilation/tests/packaging
Updated appveyor.yml to use cake script and to push artifact on myGet
@gpailler gpailler mentioned this pull request Jan 21, 2017
@ibruynin
Copy link

Hi @gpailler

when opening the VS2017 solution I get the following errors:

\vmware-host\Shared Folders\Documents\Git\GitHub\SlackAPI\SlackAPI\SlackAPI.NetCore.csproj : error : The project file cannot be found.
\vmware-host\Shared Folders\Documents\Git\GitHub\SlackAPI\SlackAPI.Tests\SlackAPI.Tests.NetCore.csproj : error : The project file cannot be found.

I'll try to resolve these myself, so this is FYI.

@gpailler
Copy link
Collaborator Author

@ibruynin thanks for the comment. I fixed the paths

@ibruynin
Copy link

Basic bot functionalities now work on our raspberry Pi with win 10 iot core and .netstandard1.3
nice work @gpailler

@gpailler
Copy link
Collaborator Author

@ibruynin Nice!. Thanks for the feedback


string userName = this.fixture.Config.DirectMessageUser;
string user = client.Users.First(x => x.name.Equals(userName, StringComparison.InvariantCultureIgnoreCase)).id;
string user = client.Users.First(x => x.name.Equals(userName, StringComparison.OrdinalIgnoreCase)).id;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this changed to Ordinal instead of Invariant?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Invariant is not supported in .NetCore. And according to this issue, InvariantCultureIgnoreCase usage is often to what we want

Copy link
Owner

@Inumedia Inumedia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the change from invariant to ordinal comparison, this looks good to me.

# Conflicts:
#	SlackAPI/SlackSocket.cs
#	appveyor.yml
@gpailler
Copy link
Collaborator Author

gpailler commented Mar 7, 2017

I fixed small conflict related to latest PR applied on master

@gpailler
Copy link
Collaborator Author

gpailler commented Mar 7, 2017

@Inumedia Probably you should wait before merging this PR. VS2017 final will be available today and I will update appveyor script as soon as they publish official image for VS2017 (it will simplify the appveyor.yml script)

@Inumedia
Copy link
Owner

Inumedia commented Mar 7, 2017

👍

@gpailler
Copy link
Collaborator Author

@Inumedia PR updated with full VS2017 support
I think you can merge this PR as is or if you have already switched to VS2017, I can replace VS2015 compatible sln/csproj with new ones.

@gpailler gpailler added this to the 1.0.6 milestone Mar 15, 2017
@andymac4182
Copy link
Contributor

Is this far away from being pulled in?

Copy link
Owner

@Inumedia Inumedia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Inumedia Inumedia merged commit f86236b into master Apr 1, 2017
@gpailler gpailler deleted the netcore branch November 6, 2018 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants