Xcode Podfile.lock showing Visual Code Studio Logo? - cocoapods

Why in the world would my Podfile.lock file be showing a VS code Logo on it? see here

just change the default application for the .lock extension:
Right click on the .lock file -> Select 'Get Info' -> under 'Open With' select the app you want to open .lock files with.

Related

Every time I add a new file in Visual Studio, I have to manaully add it to Source Control

I have .NET Core 7 sln with 10 projects and I am using Visual Studio 2022, version 17.4.4. The problem is that every time I add a new file to project it is not tracked be git and I have to manaully add it to Source Control. This happens for 9 out of 10 projects.
The source control is git repository.
Ignored file in Visual Studio
I have checked .gitignore and I compared projects settings across whole sln.
Is there any hidden setting in Visual Studio or solution to fix this issue?
It is possible that the "Automatically detect when files are changed outside of Visual Studio" option is turned off in Visual Studio. To turn it on, go to "Tools" > "Options" > "Environment" > "Documents" and check the "Detect when file is changed outside the environment" option.
If that doesn't work, you can try adding the new file to git using the command line, to see if the issue is with Visual Studio or with git itself.
Also, check the .gitignore file to make sure that the newly added file is not being ignored by git.
Finally, make sure that the projects are properly configured for git source control by going to "File" > "Source Control" > "Advanced" > "Change Source Control" and ensuring that all projects are properly bound to git.

VS code Hidden folder permission denied

Visual Studio code is not able to open files or folder within hidden folders. If I go to the file within the hidden folder .sfdx and try opening the file sfdx-config.json then Vs code opens with below error
{"name":"sfdx","hostname":"blr-ffefe","pid":21322,"log":"Login","level":50,"msg":"[\n 'ERROR running auth:web:login: ',\n "EACCES: permission denied, open '/Users/usernname/.sfdx/sfdx-config.json'"\n]","time":"2022-04-07T08:58:22.413Z","v":0}
I have also removed all the files.exclude , this is happening in Mac OS Monterey.
Steps to reproduce :
Mac OS Monterey
navigate the hidden folder
right click on any file within the hidden folder and select open with Visual Studio Code
Looks like you can solve this problem by creating a hidden folder
(with .) and a hidden file using the VS Code itself. By using file -> Open -> create any hidden folder/file in the open window.

Command Prompt in Visual Studio

I want to add a command prompt that opens in project folder when I right click my project to open a context menu -- see below:
I know how to create a command prompt link through Tools > External Tools but I don't know how to add that link to my context menu.
Could someone tell me how I can do this? Thanks.
P.S. I'm currently using the latest version of Visual Studio 2017 i.e. 15.4.5
You can use the Open Command Line extension to open a command prompt on the project's path.

How to configure the path of output directory in xcode 7.3.1 for command line template.

I usually use visual studio where I can easily configure output folder where the executable goes after building my code. However, I am trying to use xcode and started a project with the command line tool template.
After building my code, I could run it from xcode and could see the output in the xcode console. It looks like the binary file (the executable) in not in the project folder and xcode is running the executable from other path.
My question is, how can I configure xcode to put the binary file inside my project directory so that I can easily run it from console manually?
Is it possible to configure my project folder like we do in visual studio?
something line as follows:
Project folder
|- source
|- debug
|- release
Thanks.
Okay, somewhat got the solution.
Though it is not exactly same as visual studio, I could move my build folder to project folder.
Here is how I did it,
In xcode, Goto xcode->preferences
Then in the choose Locations tab.
Then in the Derived data section, click Advanced button.
Select "Custom"
Then from the drop down menu, select "Relative to workspace".

Visual Studio Installer Sub-directory

I am building an install msi using the Visual Studio 2010 installer.
I need to add files to a subdirectory of my installation. I know about the Add Files function but that will add them to the main directory. I don’t see how to add them automatically to a subdirectory. In my case it is the /Report subdirectory.
Right-click your Installer project, go to View->File System.
Now right-click on the 'Application Folder' and select Add->Folder (see screenshot below). Name your folder 'Reports' or whatever you need.
Done.
Now you can place your files under [Application Folder\Reports] on the target machine.

Resources