I am trying to create POM with specflow3 in VS2017. I have added below nuget packages. I am facing issues while setting up the project itself
Specflow.Nunit
Speclow.Tools.MSBuild.Generation
Specflow.NUnit.Testrunnen
Nunit test adapter plugin and specflow2017 plugin.
I have created a feature file and i am trying to build the solution. I am getting following error.
"Program doesnot contain a static main method suitable for an entry point." Kindly let me know the solution. It would be great help. Thanks in advance
Can you try to use specflow version 2.4.1
It seems you are trying to create it as a console application. Change the project to be a class library, or start from a test project template.
Related
I'm creating an app in which I want to utilise Xamarin.Forms' haptic feedback feature. This feature is currently under preview - so I went to the Microsoft documentation and got it setup as expected.
First of all - in my AssemblyInfo.cs in my Android project I added the following code:
[assembly: UsesPermission(Android.Manifest.Permission.Vibrate)]
Then I pasted in the following code from Microsoft into my code-behind:
HapticFeedback.Perform(HapticFeedbackType.Click);
After adding the code I get the following message:
Steps to reproduce
Open up a new project and under the Android AssemblyInfo.cs add the following code:
[assembly: UsesPermission(Android.Manifest.Permission.Vibrate)]
Paste in the following code: HapticFeedback.Perform(HapticFeedbackType.Click);
Now you should notice that intellisense says that HapticFeedback does not exist in the current context.
Things I've tried
I tried to update Xamarin.Forms and Xamarin.Essentials - but it still was not recognised for some reason
I tried to close and reopen the solution - but it sitll was not recognised.
I am looking for a solution to this so I can use haptic feedback in my application.
Image
The Xamarin.Essentials: Haptic Feedback is only available in Xamarin.Essentials pre-release version now.
To get pre-release version, check the include prerelease in the right corner:
Then you can use HapticFeedback in your project.
I have superficial knowledge on referencing libraries in projects. Usually most of the time a simple 'add reference' and then browsing to the appropriate path, just works. I am following an issue I will try to explain , and show all the approaches I tried to tackle it.
I am trying to use AutoIt. In their website it is stated that simply adding the .dll and using it, is enough to integrate their functionality in visual studio.
I am doing just that but for the moment I can not get my head around what is happening.
AutoItX is a public static class, as also the Run function is the same (public static). After adding the reference I can navigate to the appropriate .cs (if I control click on it for example). So the class AutoItX is not something unknown for the project. Moreover, the function Run indeed exists
however not inside the project itself. AutoItX also needs staff from (dont know if it is important):
The main error is that AutoItX doesnt exist in this context.
I have tried to register the dll, I have tried to add the com reference and remove it, I have tried to move the .cs files inside the project. None of those corrected the issue.
Any help would be valuable. If I missed something and you need extra info, I am willing to provide it. (Latest vs, latest autoit version, .net framework type of project).
Actually the above works.
For future reference.
The reason I did not try it first was, that they propose in their website to reference the autoItX.assembly.dll. This is probably deprecated and does NOT work anymore.
Second, if you have already referenced it , downloading this from NuGet WONT fix it.
Finally, the NuGet package does NOT work with .net CORE but ONLY with .net Framework project
I installed AutoItX.Dotnet 3.3.14.5, my test is no problem.
You can refer to my steps to create a new project to test it.
Right click References=>Manage NuGet Packages=>Browse=>AutoItX.Dotnet=>Install
Running result:
I am new in Xamarin.Forms and I want use the bar code scaner by Zxing.
however I install the plugin form nuget:
1)ZXing.Net.Mobile for Forms
2) ZXing.Net.Mobile. -> install it since I read somewhere it would help my problem but its not.
as far as I understood I need to add this line: to the Android project in main Activity
However alotugh I install the packages I am still getting an error of:
The type or namespace name 'Andorid' does not exist in the namespace 'ZXing.Net.Mobile.Forms' (are you missing an assembly reference?) ScannerZXing.Android
what can I do? (perofrm clean and rebuild for the project didn't help)
also would like to add that it is added in the referecnes of the projects.
Thanks for the ansewrs.
In my case the reason was that I installed only ZXing.Net.Mobile.Forms. After installing ZXing.Net.Mobile it`s gone. (two libraries need to be installed)
UPDATE: After trying to run the project I discovered that you actually need both Nuget Packages
Previous: Just in case anyone had the same issue as me there are actually two ZXing.Net.Mobile packages both of which by Redth. They both have the exact same description as well unfortunately. I tried the first one which at the time of this writing had the most downloads... however it produced the error as described. By uninstalling and reinstalling the second I resolved the issue:
I'm currently developing a Xamarin.Android application in VS2013.
I want to implement Azure Active Directory in my app following this guide. Then I add Microsoft.IdentityModel.Clients.ActiveDirectory nuget package as described.
Then I want to add an AuthenticationResult attribute, but then I got a missing assemble reference error. Even when I explicitely write (or drag and drop) Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult.
I looked everywhere for solutions, but none fits my problem. (Upgrade/Downgrade target framework didn't solve the issue)
If anyone has an idea about this, I would be really thankful because I'm getting out of ideas.
Thank you.
Few things to check or try:
Does the Reference to Microsoft.IdentityModel.Clients.ActiveDirectory appear in the References list from your solution?
If it appears, what are the properties, like copy to output, absolute/relative path?
Is it added for all Project configurations (Debug/Release)?
So I found out what was the problem. I had to use a specific version of the package since it's a pre-released version. I had to install 3.0.110281957 exactly then it recognize the reference as I needed.
Hi does any of you know where can I find Microsoft.TeamFoundation.Framework.Client using nuget? I can't find it because I'm trying to create instance of TfsConfigurationServer.
The namespace "Microsoft.TeamFoundation.Framework.Client" is in the Microsoft.TeamFoundation.Client.dll.
These assemblies are shipped with visual studio for vs2013 located under the extensions tab.
see the following for an example of how to use the .dll's in a console application
http://msdn.microsoft.com/en-us/library/bb286958.aspx