Results 1 to 10 of 10
  1. #1
    Join Date
    May 2010
    Posts
    8

    [SOLVED] bundletransformer.configuration.xsd Missing

    I am on Chapter 10 Setting up our Website, but after I install the Bundle Transformer.Less NuGet package, I dont get the bundletransformer.configuration.xsd file after installation.



    I am using VS 2015 Community Edition, so idk if the new version is causing problems.
    Last edited by tsoramaki; 04-18-2016 at 02:18 AM.

  2. #2
    Join Date
    Feb 2014
    Posts
    277
    Are you expecting that file on your pc, or just expecting it to be referenced in web.config?
    It's not on my pc, but it is referenced in my web.config inside a section called bundleTransformer

    I am also using vs2015 CE. I haven't installed update 2 as yet.

  3. #3
    Join Date
    Nov 2006
    Location
    Vancouver, WA
    Posts
    236
    I have it in my VS2015 in the,
    C:\Users\Documents\YourCodebase\src\YourCodebase.W ebsite\YourCodebase.Web

    But my project has moved many times starting with VS2010.

    You can get more info here.
    https://bundletransformer.codeplex.c...ion%20settings
    The only way to fail is to give up or die...

  4. #4
    Join Date
    May 2010
    Posts
    8
    Quote Originally Posted by oldngrey View Post
    Are you expecting that file on your pc, or just expecting it to be referenced in web.config?
    It's not on my pc, but it is referenced in my web.config inside a section called bundleTransformer

    I am also using vs2015 CE. I haven't installed update 2 as yet.
    I found it referenced sort of in Web.confg, but its a url.

    Code:
    <bundleTransformer xmlns="http://tempuri.org/BundleTransformer.Configuration.xsd">
    When I was watching the video the file was actually added to the folder structure after installation of the Bundle Transformer.Less NuGet package. I'm assuming something has changed.

    I just hope its not going to cause any issues down the road.

    Although I expect to encounter alot of these issues since software changes so much over time.

  5. #5
    Join Date
    Feb 2014
    Posts
    277
    I just checked the updates available across all the projects in the solution, and I have a total of 28 packages that are out of date.
    That includes my versions of BundleTransformer.Core (at 1.9.69) as well as BundeTransformer.Less (at 1.9.76).

    As I don't have a local copy of the xsd file in my web project I wouldn't worry about it. The url reference in the web.config seems to be all the project needs to reference the schema.

  6. #6
    Join Date
    May 2010
    Posts
    8
    Ok that's good to hear, I seem to have run into a second problem though.

    now in my BundleConfig.cs file,
    Code:
    frontendStyles.Transforms.Add(new CssTransformer(
    CssTransformer is throwing a "type or namespace name cannot be found" error.

    I have my "using BundleTransformer.Core.Transformers;" line in place,
    checked my spelling, but still no joy. Could some reference be missing? I've been scratching my head over this for hours. Couldn't find anything.

  7. #7
    Join Date
    Nov 2006
    Location
    Vancouver, WA
    Posts
    236
    Hmm I have all my packages update to the latest versions, here is how mine reads.

    var frontendStyles = new StyleBundle("~/styles/frontend");
    frontendStyles.Transforms.Add(new StyleTransformer(
    new List<ITranslator>
    {
    new LessTranslator()
    }));
    The only way to fail is to give up or die...

  8. #8
    Join Date
    May 2010
    Posts
    8
    Quote Originally Posted by Matroblend View Post
    Hmm I have all my packages update to the latest versions, here is how mine reads.

    var frontendStyles = new StyleBundle("~/styles/frontend");
    frontendStyles.Transforms.Add(new StyleTransformer(
    new List<ITranslator>
    {
    new LessTranslator()
    }));
    You sir, are awesome!

    Replacing CssTransformer with StyleTransformer did the trick.
    Thanks a bunch!

  9. #9
    Join Date
    Nov 2006
    Location
    Vancouver, WA
    Posts
    236
    You are welcome, glad I was able to help.
    The only way to fail is to give up or die...

  10. #10
    Join Date
    Feb 2014
    Posts
    277
    Ah, they finally removed that deprecated method name.
    ReSharper had warned me about that one when I first started this series.

    By the way, if you don't have ReSharper, I highly recommend it. You might think it's expensive, but you won't spend better money. Not only can you follow Nelson much faster, but it's full of helpful hints like the problem you had .......

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •