Comments (9)
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.
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.
@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.
We have updated the unit test template. This should no longer be an issue, closing.
from generator-aspnet.
@sayedihashimi The unit test template simply disappeared. What do you mean by "updated the unit test template"?
from generator-aspnet.
We released an update to the generators a few days back, did you update?
from generator-aspnet.
@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.
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.
We will have a new template soon, see #165. I'll close this now.
from generator-aspnet.
Related Issues (20)
- Remove 'usersecrets` subgenerator for RC HOT 1
- Update Docker template content for 2017RC HOT 1
- Update global.json generator/template for VS2017 RC HOT 1
- How to create controller in vscode using yo HOT 2
- [Possible Bug] Can't seem to run Yeoman generate project on Heroku HOT 10
- Can find project.json inside of new project HOT 18
- Log off should be Logout in mvc template
- Cant project in visual studio HOT 2
- The target "Restore" does not exist in the project HOT 2
- The specified framework 'Microsoft.NETCore.App', version '1.0.4' was not found HOT 5
- Subgenerators are not available HOT 5
- Can not bundle Js and css file in aspcore/angular2 HOT 2
- How to install previous generators HOT 1
- Bower is deprecated HOT 3
- double '<' character in csproj files HOT 1
- Error when using --version-current HOT 2
- Upgrade project templates to .NET Core 2.0 HOT 2
- Can't install generator-aspnet
- Sematic UI template - Index.cshtml content still has "ASP.NET MVC 5" or "ASP.NET 6" naming reference HOT 1
- Deprecate generator-aspnet package HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-aspnet.