-
Notifications
You must be signed in to change notification settings - Fork 11
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
Using LibSass on MacOS #16
Comments
The only thing is still not working is the importing path. Looks like it's getting on app root folder.
If i change my import to use full path, it works: |
Hello!
In package description and documentation clearly says the following: “This package is only compatible with .NET Core.”. In Mono you need to independently deploy the
This is correct behavior.
Are you porting an ASP.NET application? |
You are trying to use the Bundle Transformer in Mono for OS X? Are you using the original assemblies or modified source code? |
Yes, porting an .net app and i'm also using Bundle Transformer with original assemblies:
|
This error message shows, that path of I recommend you to debug a P.S.: I do not guarantee compatibility of the Bundle Transformer with operating systems other than Windows. |
Try to update the Bundle Transformer to version 1.9.171 Beta 1. Waiting for feedback. |
Still not working:
That is the content o _bootstrap.scss
|
It looks like you do not have the following settings in the <?xml version="1.0" encoding="utf-8"?>
<configuration>
…
<bundleTransformer xmlns="http://tempuri.org/BundleTransformer.Configuration.xsd">
<core>
…
<css …>
…
<fileExtensions>
…
<add fileExtension=".sass" assetTypeCode="Sass" />
<add fileExtension=".scss" assetTypeCode="Scss" />
…
</fileExtensions>
…
</css>
…
</core>
…
</bundleTransformer>
…
</configuration> I already see such a error today.
If your .NET application is not a ASP.NET web application, then what kind of .NET application is it? |
You have installed the BundleTransformer.SassAndScss package? |
Remove the following line: styleBundle.Transforms.Add(new StyleTransformer()); |
You registered a bundle with a |
I removed that line, but same effect. I haven't, but why am I need to have it? on _bootstrap, I have this:
|
Why did you request through the browser this URL - |
I didn't do that. Looks like the css is parsing as another file. This is happening when there is nested imports. |
You have this web application worked on Windows? |
Yes, the same source code is working fine |
Check which result produces the following expression: System.Web.VirtualPathUtility.ToAbsolute("~/Styles/_bootstrap.scss") |
Where did “These assets are not style sheets: ~/Styles/_bootstrap.scss, ~/Styles/twyne.scss.” error come from? |
/Styles/_bootstrap.scss |
I had when i access any route that is including render |
Now check this expression: new BundleTransformer.Core.FileSystem.VirtualFileSystemWrapper().ToAbsolutePath("~/Styles/_bootstrap.scss") |
I can't find this namespace: BundleTransformer.Core |
It doesn't matter. I have tested the Bundle Transformer on Mono for Mac OS X. To fix a error add the following settings to the <?xml version="1.0" encoding="utf-8"?>
<configuration>
…
<system.web>
…
<httpHandlers>
…
<add path="*.sass" verb="GET"
type="BundleTransformer.SassAndScss.HttpHandlers.SassAndScssAssetHandler, BundleTransformer.SassAndScss" />
<add path="*.scss" verb="GET"
type="BundleTransformer.SassAndScss.HttpHandlers.SassAndScssAssetHandler, BundleTransformer.SassAndScss" />
…
</httpHandlers>
…
</system.web>
…
</configuration> This error is described in detail in the “Mono and IHttpHandler” discussion on Stack Overflow. Solution to this problem is also described in the “Sass and SCSS” section of documentation. |
Awesome! It's working perfectly! Thank you much for your help =) |
Hey, i updated the libs and i'm having this:
|
Most likely, you are using the version of I recommend you to download a modified version of the LibSass library. |
I just copied your file to /Library/Frameworks/ and having the same issue. |
I had to copy the file to projectroot, and with that worked, Is that the correct behavior? |
If you installed the LibSass library by using the following command:
or
As a result,
Then you can install a modified version of the LibSass library as follows:
|
Hi! First, I need to congrats you for this lib. Really useful. So, I am porting and existing .net app to mono but i couldn't install 'LibSassHost.Native.osx-x64.1.0.4' there. Probably i am missing something.
I generated the build file described here: https://github.com/Taritsyn/LibSassHost#os-x, but the output generated was *.dylib, and i couldn't make it work on my project. If you could help me with that i really appreciate.
This is the error i got:
edit:
I moved the generated file to: /Library/Frameworks/ and it's working.
tks!
The text was updated successfully, but these errors were encountered: