Git Product home page Git Product logo

Comments (9)

joaomoreno avatar joaomoreno commented on May 27, 2024

If I replace "xunit.runner.kre": "1.0.0-beta1-*" with "Xunit.KRunner": "1.0.0-beta1" and add a specific NuGet.Config file, then it works.

I figured this out by mimicking what is done in omnisharp-roslyn.

from generator-aspnet.

sayedihashimi avatar sayedihashimi commented on May 27, 2024

xunit is not on nuget.org yet that's why you are running into this. We should probably disable the unit test template in the generators.

from generator-aspnet.

bradwilson avatar bradwilson commented on May 27, 2024

@sayedihashimi: Sorry, your information is incorrect.

xunit.runner.kre was never an officially supported runner. If you want current instructions on how to use xUnit.net inside ASP.NET v5, please see our documentation: http://xunit.github.io/docs/getting-started-aspnet.html

Also, there is no need to have special NuGet.config files for this process. Everything that's required is on nuget.org.

from generator-aspnet.

sayedihashimi avatar sayedihashimi commented on May 27, 2024

We have updated the unit test template. This should no longer be an issue, closing.

from generator-aspnet.

joaomoreno avatar joaomoreno commented on May 27, 2024

@sayedihashimi The unit test template simply disappeared. What do you mean by "updated the unit test template"?

from generator-aspnet.

sayedihashimi avatar sayedihashimi commented on May 27, 2024

We released an update to the generators a few days back, did you update?

from generator-aspnet.

peterblazejewicz avatar peterblazejewicz commented on May 27, 2024

@sayedihashimi
I think @joaomoreno is correct, we need to take a closer look:
https://github.com/OmniSharp/generator-aspnet/blob/master/app/index.js#L44-L47

from generator-aspnet.

sayedihashimi avatar sayedihashimi commented on May 27, 2024

Sorry about that. We have a PR for the unit test feature open at #78. I just replied there. I tried the template on OSX and received the following errors on kpm build and k test

  Unable to resolve dependency framework/System.XML


Build succeeded.
    0 Warnings(s)
    0 Error(s)

Time elapsed 00:00:01.0898924
Sayeds-MacBook-Pro:UnitTest sayedhashimi$ k test
System.InvalidOperationException: Failed to resolve the following dependencies for target framework 'Asp.Net,Version=v5.0':
   framework/System.XML

Searched Locations:
  /Users/sayedhashimi/temp/{name}/project.json
  /Users/sayedhashimi/.k/packages/{name}/{version}/{name}.nuspec
  /usr/local/Cellar/mono/3.8.0/lib/mono/4.5/{name}.dll
  /usr/local/Cellar/mono/3.8.0/lib/mono/4.5/Facades/{name}.dll

Try running 'kpm restore'.

  at Microsoft.Framework.Runtime.DefaultHost.GetEntryPoint (System.String applicationName) [0x00000] in <filename unknown>:0
  at Microsoft.Framework.ApplicationHost.Program.ExecuteMain (Microsoft.Framework.Runtime.DefaultHost host, System.String applicationName, System.String[] args) [0x00000] in <filename unknown>:0
  at Microsoft.Framework.ApplicationHost.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

from generator-aspnet.

sayedihashimi avatar sayedihashimi commented on May 27, 2024

We will have a new template soon, see #165. I'll close this now.

from generator-aspnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.