I'm new at using Git, and I have a problem while publishing a VS Project into GitHub.
Well, what I did was, first creating a GitHub account, then I installed Update 3 to VS 2012, and then installed Visual Studio Tools for Git so I can integrate Git with VS.
Then after that, I created a project in VS, it was a solution with 3 class libraries projects and one wpf project, everything in C#. After that I right clicked on my solution and chose commit, and then published it into a repository I created on my GitHub account.
It was supposedly published at GitHub, but when I decided to clone it locally to another computer, and after entering the project, it showed up a message saying that 2 projects of the solution couldn't been loaded.
Then I made another test, but instead of making it in C# I choose VB, I did the same steps, but this time it was published correctly into GitHub.
Why is it giving me problems only with C#?
Related
I started editing a c# console app on my laptop in vs and pushed to a git repo. I cloned the repo to my desktop through visual studio and opened the solution, however when I try to run, it says the debug.exe cannot be found? I was under the impression solutions cloned from github should run?
Tested with the following setup:
Home - VS2017 or VS2019
Classroom - VS2013 or VS2015.
I do code at home, then copy to my flash drive, bring it to the classroom and open a project from their PCs. Upon compilation I receive a big list of errors accessing standard header files, similar to this. Happens to me with every project I create at home, and the other way around: from the classroom to home PC.
This is something that doesn't happen with C# projects, which only ask me to change the .net framework version before opening, everything works fine here.
If you created a project in VS2013 and try to open it in VS2017 or VS2019 you might need additional changes.
Check this out- https://learn.microsoft.com/en-us/visualstudio/porting/port-migrate-and-upgrade-visual-studio-projects?view=vs-2019
If you created a project in the latest version say VS2019, it is very difficult to open it in older versions such as VS2013.
To fix it set the Omnipath to latest in vscode settings
I was planning to use TFS for my personal software projects I work on, with Visual Studio Team Services, however Microsoft some time ago changed Team Services to use DevOps instead of TFS, I wanted something where I could publish Visual Studio solutions to source control that is publicly viewable on the Internet, for example projects I am working on with an MIT open source license, and also have private repositories for my proprietary projects I am working on that are NOT open source.
After Microsoft bought GitHub, I was sure they were going to integrate GitHub with Visual Studio, and they did! I installed the GitHub extensions into my Visual Studio, and signed up for the $7 a month GitHub developer service, a good deal no doubt. I was planning to use public repositories for example solutions to show publicly to help me with new software gigs, and use private repositories for my projects I hope to make money from. GitHub seems like a good solution for this reason, with the Developer account you can have unlimited public and unlimited private repositories.
SO my problem started when I tried to add an already existing ASP.NET Core 2.2 MVC solution to Github, the tutorial I found showed only how to create a new project in a new or existing GitHub repository, not how to add an existing Visual Studio solution, I found some examples of doing this from the command line, but I am sure there must be some way to do this with clicks of a mouse instead of a command line option. I would like to know how to add an existing Visual Studio solution to GitHub with clicks of a mouse.
This his how you'd do it with Visual Studio 2017.
The Team Explorer tab is where you'll manage much of this.
1) In the Solution Explorer tab right-click and Add Solution to Source Control...
2) Now it will show up in the list of Local Git Repositories on the Team Explorer tab
3) Click the plug and log into GitHub if you haven't yet done so.
4) Click the home icon then click Sync
5) Enter the name of the repo then press Publish.
6) Check the remote to verify the files have been pushed up to GitHub.
Discovered to my horror, that after updating all my Visual Studio 2017 instances to version 15.5 (from version 15.3), none of the setup projects will load and I get a message saying they are not supported. I've tried several Desktop applications, all developed in VS2017 and these setup projects won't load.
Is there any workaround to this (without creating all new Setup projects - some are quite complex)?
Ah, the issue turned out to be that the Installer Projects extension was corrupted, so I renamed my setup project, then re-downloaded/re-installed the "Microsoft Visual Studio 2017 Installer Projects" extension, closed Visual Studio, renamed my Setup project to what it was, opened the solution again & added the Setup project back to the solution.
NOTE - the other PC running VS2017 never had the Installer Projects integrated w/VS in the first place (it was more for web development), the reason why they wouldn't open.
Worked like a charm!
I am trying to add a repository containing the html pages, javascript scripts, images, and c# code files for my website hosted on IIS. I have a solution in visual studio 2017 that has the website added as a project, but as Web Site's go, the actual files for the website are in a different folder than the project (inetpub vs the defualt project file location). When I tried to add the project to git from visual studio it says the portions of the website outside of the project folder will not be added or maintained by git. Is there any way to get my code onto git?
If this is your first time using git, I recommend checking out a few of the courses available online, such as Github's Hello world or their Try It tool, or a tutorial offered by someone else, like this one.
There is also an official book on how to use git and how it works, available online for free, here.
Keep in mind that while these links are mostly around github, you can use the tools here with any git host, like GitLab, BitBucket, or even your own self hosted solution