Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linked DLL references and remove copying #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nschonni
Copy link
Contributor

Took another pass after the last set of improvements to see if I could get something that worked with the regular clean operations

/cc @am11

Took another pass after the last set of improvements to see if I could get something that worked with the regular clean operations
@@ -12,13 +12,12 @@
<AssemblyName>LibSass.NET.Tests</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>bin\$(Configuration)\obj\</IntermediateOutputPath>
<IntermediateOutputPath>obj\$(Configuration)</IntermediateOutputPath>
Copy link
Contributor

Choose a reason for hiding this comment

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

This is intentional to keep everything under bin/.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What is the reason for that? This is the usual layout for projects.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's just better to have one output folder with all the intermediate stuff as normally happens in case of Unix. That's the reason I moved obj in bin during the rewrite. Otherwise, I have no strong preference. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I'm going to leave it for now, but I'll start to look at some of the Core stuff to see what they're doing

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, regarding that, I have been using DNX/Core for over an year now and have survived at least 5 era of upgrades (starting from DNX beta7) 😬. One thing you might notice that there is a lot of stuff already deprecated. So just skip whatever is older than a month or max two months old.

From tooling point of view, the key elements are:

https://github.com/dotnet/cli (command line utility which user and VS are using today to compile projects)

which depends on:
https://github.com/dotnet/core-setup (dotnet.exe aka muxer utility)

and:
https://github.com/dotnet/sdk (where the real magic is happening)

which has another dependent:
https://github.com/dotnet/roslyn-project-system (the new CPS based project system written for VS2017+ and above, see readme for more info)

Note that they are not only .NET Core tools, these tools are made so that they are backward and forward compatible and provide xplat support. For instance, we can potentially configure a project targeting multiple frameworks: v2, v3, v3.5, v4, v4.5, v4.6, netstandard1.1, netstandard1.3, netstandard1.5 and netstandard1.7 and build with a single command dotnet build or msbuild mySolution.sln.

Think of SDK as an API, which CLI and RPS are implementing, but today VS2015 and command line usage, both are consuming the CLI as SDK is comparatively a new abstraction in the OSS toolset.

Also, upcoming msbuild v15 used in VS2017 is based on msbuild repo's default branch xplat instead of master. Both will be merged soon™️ but master which is windows only is irrelevant. MSBuild is not under dotnet org (but Microsoft), as it has non-dotnet usages as well.

We can further the discussion on Slack channel. Question is; are you READY? 😎

SourceFiles="$(LibSassPath)libsass32.dll;$(LibSassPath)libsass64.dll"
DestinationFolder="$(OutputPath)"
SkipUnchangedFiles="true" />
</Target>
Copy link
Contributor

@am11 am11 Jan 19, 2017

Choose a reason for hiding this comment

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

Without copy libsass.dll native to dependent projects, it fails to run.
Just realized the DLL link thingy.

@am11
Copy link
Contributor

am11 commented Jan 19, 2017

Hey, #47 is in progress, can this wait until that goes in?

<Link>libsass64.dll</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
Copy link
Contributor

Choose a reason for hiding this comment

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

With #53, we have single libsass.dll now. However, this can be simplified to

<Content Include="$(OutputPath)\libsass.*">

* is to provide Unix extension support (.dll -> .so or .dylib etc.)

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.

2 participants