Using the NuGet package manager dialog at the solution level in the normal course of updating a package reference once the process is complete there is a green tick on the item and the update button disappears. However, with certain of my packages the update process completes, as far as I can tell successfully, but no green tick and the update button remains. Press it again and the next dialog shows that no projects require an update for that package.
Am I missing something here or is this a bug?
I found that this can happens when updating Solution-level packages. For some reason, they are updated side-by-side and the older package version causes the update to always appear as applicable. I filed an issue to clarify this behavior: #2062
Another way that this happens is when packages.config is excluded from the project. The package is updated but the new version is not updated in packages.config. Please, make sure that packages.config is included in the project.
Related
I am using Xcode Version 12.0.1 (12A7300). When I tried to build a simple online course project, it built successfully, but I keep getting the warning to update to recommended settings regarding Quoted include in Framework Header.
I am NOT doing anything with pods at the moment. In fact, I uninstalled and removed pods completely from my Mac just in case it contributed to the problem. How do I resolve this issue?
I hesitate to click "Perform Changes" as I think this is exactly what will cause pods to blow up double-quotes vs. angle brackets issue later. I want to solve this issue first before I proceed.
I had to do this for one of my projects just now:
Go ahead and click "Perform Changes". This will enable the dreaded warning but also update LastUpgradeCheck in your Xcode project file. The new value in LastUpgradeCheck will prevent Xcode from showing the "Update to recommended settings" alert for this recommendation.
Then, manually disable the "Quoted Include In Framework Header" warning in your project file. You can follow the instructions in this answer if you just select "Flash Chat iOS13 project" instead of "Pods" in Step 1.
The result should be that your project file will have an updated line looking similar to LastUpgradeCheck = 1210; (possibly with a different number), and then one or more added lines with CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO;.
If you add back in cocoapods later, you may have to repeat the steps for the Pods project, or you may be able to get by with just updating cocoapods if the fixed version is released.
I'm trying to install the FluentNHibernate using Nuget but whenever I try it throws an exception 'Iesi.Collections' already has a dependency defined for 'NETStandard.Library and I don't know how could I fix it.
How could I fix this problem ?
I had the same issue and had it resolved by following these procedures:
1. Right-click the project in the Solution Explorer and select the option 'Manage NuGet Packages'.
2. At the LHS pane, click 'Online' from the list, then type any package name you want on the upper
right search field.
3. Select and Install. If there are dependencies, the system will add them automaically (the right versions of course).
4. Restart VS if necessary.
Note: the listed procedures require an internet connection.
I've been using an ActiveX control for VNC Viewer support in a legacy application for a few years now. The ActiveX control is called Smartcode ViewerX VNC Viewer. After a bit of trouble connecting to one of our systems, I decided to update to the latest version (which was available on the Smartcode website). This didn't resolve the issue and moreover had a nag dialog because I had forgotten our 1-year upgrade license had lapsed.
After uninstalling the latest version I would now like to start again but try as I might, I cannot re-install the previous version because there is already a TCSC_ViewerControl component on the ActiveX palette. How do I remove this so I can start again?
When I select control, there is no option to delete it.
UPDATE
I tried moving the component to a separate page (ie. removing it from the ActiveX page). Then I tried deleting this page, but I get the message:
A page must be empty before it can be deleted.
You have installed this component into the dclusr70 package. You will need to open up that package file (open its .dpr file) and remove the units that relate to this file. Then compile the package and install it again.
I'm working with Xamarin-Android to make an application, so I need to set Build Action to my google-services.json file but there is no such Property as GoogleServicesJson, and when I try just to write it, it shows me an exception:
Exception of type 'System.Runtime.InteropServices.ExternalException'
was thrown.
I tried to save and then restart Visual Studio, but it didn't solve the problem.
If you know how to solve this problem, please help me! :)
That's the file I'm clicking on
The GoogleServicesJson build type comes from the Xamarin.GooglePlayServices.Basement.targets.
If your project does not have Xamarin.GooglePlayServices.Basement installed via one of its dependents, usually Xamarin.GooglePlayServices.Gcm or Xamarin.Firebase.Messaging if we are talking about messaging, then you will not have that build action available.
After adding a package that installs Basement, or manually adding it yourself, your .csproj will contain an import for Xamarin.GooglePlayServices.Basement.targets and GoogleServicesJson will be available as a build type:
.csproj import example:
<Import Project="..\packages\Xamarin.GooglePlayServices.Basement.42.1001.0\build\MonoAndroid70\Xamarin.GooglePlayServices.Basement.targets" Condition="Exists('..\packages\Xamarin.GooglePlayServices.Basement.42.1001.0\build\MonoAndroid70\Xamarin.GooglePlayServices.Basement.targets')" />
Even after installing "Xamarin.GooglePlayServices.Basement" GoogleServiceJson option was not showing. Surprisingly but when i quit Xamarin studio and opened it again it starts displaying.
1-Download first these Packages:
Xamarin.Firebase.Common
Xamarin.Firebase.Config
Xamarin.Firebase.Iid
Xamarin.GooglePlayServices.Base
Xamarin.GooglePlayServices.Basement
Xamarin.GooglePlayServices.Tasks
2-then restart and rebuild
3-from google-services.json --> Properties --> build Action: GoogleServicesJson
In Visual Studio close the Project and reopen it. That worked for me:)
Download first these Packages:
then restart
GoogleServiceJsom is coming from Xamarin.GooglePlayServices.Basement package. If it is not visible after the package installation restart your visual studio project, it will work
I tried installing every single package that people have suggested installing, I restarted my visual studio after each one, tried running as admin, restarted my computer, NOTHING would work. I could not get the GoogleServicesJson option to show up in my Build Actions list.
Looking at #SushiHangover 's comment, I tried just copying and pasting that line into my .shproj file and changed it to match the path to my nuget packages
<Import Project="C:\Users\<my user>\.nuget\packages\xamarin.googleplayservices.basement\117.6.0.3\build\monoandroid90\Xamarin.GooglePlayServices.Basement.targets" Condition="Exists('C:\Users\<my user>\.nuget\packages\xamarin.googleplayservices.basement\117.6.0.3\build\monoandroid90\Xamarin.GooglePlayServices.Basement.targets')" />
And this is the only thing that would finally work for me. Hope that it helps someone else!
I thougt i was doing it wrong but you dont get the Build action by rightklick it like a example from Mac
PS You dont right klick on the Google-Services.json and see the Build avtion
You press properties and then at the properties you find the Build action
While using AppCenter, I was not adding App centre and App Center Push packages to Android Dependencies folder. Upon adding GoogleServicesJson immediately showed up
I was getting stuck with this because the Microsoft guide https://learn.microsoft.com/en-us/xamarin/android/data-cloud/google-messaging/remote-notifications-with-fcm?tabs=windows which was saying to install Xamarin.GooglePlayServices.Base directly.
What worked:
install Xamarin.GooglePlayServices.Gcm through Nuget
I've loaded a project in Xcode 4 after not looking at it for a while. Xcode shows its progress bar and indicates in text that the project is loading, and it appears to finish, but then there are no files shown in the hierarchy or flat views. There is nothing showing in any view (except for one breakpoint in the breakpoints view).
Any ideas? Xcode gives me zero indication that anything is wrong, it shows me nothing.
I just had the same issue. After a few hours scratching my head and trying all kind of things, I finally found a fix: remove the whole package 'project.xcworkspace' inside the XXXXX.xcodeproj package.
More specifically, when you find the 'XXXXX.xcodeproj' file, right-click it, and select 'Show Package Contents'. This will get you inside the package where you will find the 'package.xcworkspace' file. It is best to do this while the Xcode project is closed.
Maybe that will work for you or for others with the same issue in the future...
Some of the project views have the "Recently Changed" filter icon. For me the problem was: i had that enabled in the Project Navigator, so it was only showing the files i recently changed. It looks like this.
I'm using Xcode 6.1 though.
I had a similar issue. After archiving a project the files would disappear from the project navigator.
It turned out that somehow XCode had added the word "main" to the searchbar below the project navigator so that almost all files where invisible. Quite frustrating.
It might be the same case for you..
For those who make it here, I was opening a older version of a similar iOS project after upgrading to the latest XCode (6.2), and was seeing the symptoms labeled in this question (missing files, folders etc.)
My solution: at the bottom left of the screen, unselecting 'Show only files with source-control status" which happened to be set on (it's blue when on). The icon looks like a 4-pt star inside a square.
remove the whole package 'project.xcworkspace' inside the XXXXX.xcodeproj package. may cause to any other error so please ignore and trying finally
You can quit xcode and reload again your project it help you
This happened to me when I tried to do an alt-tab, on a VM running in TeamViewer in Windows - Click the search bar below, enter delete multiple times and the invisible search term cleared up
I had the same issue. Besides the answers above, it could also be that you have already accidentally opened the project in another Xcode window... Close that and reopen everything and it should work.