Decided to experiment with the Uno Platform, so I followed the instructions here: https://platform.uno/docs/articles/get-started.html
Set up a new solution in VS2019 16.6.4 using the Cross-Platform App (Uno Platform) template, then updated all the NuGet packages.
Without changing a line of code, I'm unable to build the solution (or just the UWP project). With UWP/x86 selected, I get these two build errors:
Error CS1929 'ILoggerFactory' does not contain a definition for
'AddConsole' and the best extension method overload
'ConsoleLoggerExtensions.AddConsole(ILoggingBuilder,
Action)' requires a receiver of type
'ILoggingBuilder' [PROJECT].Droid, [PROJECT].UWP, [PROJECT].Wasm,
[PROJECT].iOS,
[PROJECT].macOS [PATH] \ [PROJECT].Shared\App.xaml.cs 116 Active
Error CS1061 'App' does not contain a definition for
'InitializeComponent' and no accessible extension method
'InitializeComponent' accepting a first argument of type 'App' could
be found (are you missing a using directive or an assembly
reference?) [PROJECT].Droid, [PROJECT].UWP, [PROJECT].Wasm,
[PROJECT].iOS,
[PROJECT].macOS [PATH] \ [PROJECT].Shared\App.xaml.cs 116 Active
Any thoughts on how to fix this?
Downgrade your Microsoft.Extensions.Logging.Console and Microsoft.Extensions.Logging.Filter nuget packages to version 1.1.1
Related
I created a new Winforms Xaf Xpo standard security project with 21.2/5
Then I changed the framework of each project to be 4.7.2
Then I ran the upgrade wizard.
Then I tried to convert the project files to use Nuget with Package References.
However I get the following build errors
Severity Code Description Project File Line Suppression State
Error CS1061 'SecurityStrategy' does not contain a definition for 'RegisterXPOAdapterProviders' and no accessible extension method 'RegisterXPOAdapterProviders' accepting a first argument of type 'SecurityStrategy' could be found (are you missing a using directive or an assembly reference?) DXXpo.Win C:\Users\kirst\source\repos\DXXpo\DXXpo.Win\Program.cs 33 Active
Error CS0246 The type or namespace name 'SecuredObjectSpaceProvider' could not be found (are you missing a using directive or an assembly reference?) DXXpo.Win C:\Users\kirst\source\repos\DXXpo\DXXpo.Win\WinApplication.cs 20 Active
I tried drilling into another new project and I can see that RegisterXPOAdapterProviders has namespace DevExpress.ExpressApp.Security
I already have that installed as a NugetPackage.
I tried installing DevExpress.ExpressApp.Security.Xpo but I get a message
Severity Code Description Project File Line Suppression State
Error NU1101 Unable to find package DevExpress.ExpressApp.Persistent.Base. No packages exist with this id in source(s): DevExpressMy, nuget.org, SBDCommonFeed#Local DXXpo.Win C:\Users\kirst\source\repos\DXXpo\DXXpo.Win\DXXpo.Win.csproj 1
There are no packages starting with DevExpress.ExpressApp.Persistent in the feed.
The docs are here
This question is possibly related.
I managed to resolve this issue by including the package DevExpress.ExpressApp.Security.Xpo
I am currently unable to apply a CustomOverlay to my MobileBarcodeScanner instance and according the documentation on their website, I should be able to but it gives me the following error.
Severity Code Description Project File Line Suppression State
Error CS1061 'MobileBarcodeScanner' does not contain a definition for 'CustomOverlay' and no extension method 'CustomOverlay' accepting a first argument of type 'MobileBarcodeScanner' could be found (are you missing a using directive or an assembly reference?) ScannerTesting C:\Users\kalpr\Source\Repos\ScannerTesting\ScannerTesting\ScannerTesting\MainViewModel.cs 88 Active
I am doing this in my .Net Standard Class library which shares the code between all the different platforms.
Should I be doing this natively for each platform or can I just declare it in the portable .NET Standard project?
I have created .net core 2.0 mvc app using this command: 'dotnet new mvc' and it runs without any problems, but in vscode i have two errors:
'IServiceCollection' does not contain a definition for 'AddMvc' and no extension method 'AddMvc' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?)'
'IApplicationBuilder' does not contain a definition for 'UseStaticFiles' and no extension method 'UseStaticFiles' accepting a first argument of type 'IApplicationBuilder' could be found (are you missing a using directive or an assembly reference?) '
I'm using: Linux elementary OS 0.4.1 Loki, .net core 2.0, vscode 1.15.1.
Your Nuget Restore could have failed when loading the project. Try running dotnet restore from the command line.
Also check to make sure you have using Microsoft.Extensions.DependencyInjection at the top of the file where you use .AddMVC() and .UseStaticFiles()
i got the same problem i fixed it by adding below package in .cproj file
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.7" />
and did a dotnet restore. I am using dotnet 3.1 version.
I've created a new 'Blank Xaml App (Xamarin.Forms Shared)' app in Microsoft Visual Studio Enterprise 2015 version 14.0.25123.00 Update 2.
Immediately after creating the project, I was greeted with 217 errors.
Restarting Visual Studio removed most of those, but 35 still remain.
The first two errors are about Foundation and UIKit not being found. I believe these two might also cause the rest of the errors.
Does anyone have some ideas as to how to solve these?
Error CS0246 The type or namespace name 'Foundation' could not be found (are you missing a using directive or an assembly reference?)
Error CS0246 The type or namespace name 'UIKit' could not be found (are you missing a using directive or an assembly reference?)
If you are missing the reference to Xamarin.iOS, try re-adding it manually:
Under the Xamarin.iOS project, right click References > Add Reference...
In the references dialog, on the left hand side, click on Assemblies, then Framework. Search for Xamarin.iOS and select it to add the reference.
If the Xamarin.iOS assembly isn't listed, take a look under this path:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0
If the assembly is missing from that directory, try repairing the Xamarin installation - Windows Programs and Features > Xamarin > Repair.
I am trying to create some ASP.net 5 MVC Web Application using VS 2015 CE.
I am always getting error with DNX Core and DNX 4.5 as not being referenced to the project.
I tried changing the project.json file by removing entries in
"frameworks" section and keeping only one at a time from both "dnx451"
and "dnxcore50", still no luck.
I ended up with the large list of compile time error primarily because of the following error.
CS1061 'ApplicationDbContext' does not contain a definition for 'Database' and no extension method 'Database' accepting a first argument of type 'ApplicationDbContext' could be found (are you missing a using directive or an assembly reference?) DemoApp.DNX 4.5.1
and on the same lines
CS1061 'ApplicationDbContext' does not contain a definition for 'Database' and no extension method 'Database' accepting a first argument of type 'ApplicationDbContext' could be found (are you missing a using directive or an assembly reference?) DemoApp.DNX Core 5.0
Tried using 'Restore Packages' command as well but nothing happens.
I dropped the project and re-created, however same things happened again.
As far as I know it worked before and now I don't know what went wrong all of the sudden.
I resolved problem by..
Deleting the project.lock.json file (figured out this was not allowing to upgrade and resolve the References)
Running a DNVM upgrade command from command prompt.