Откат проекта
Случайно удалил часть кода С#, сохранил проект и вышел.
Галочка на автосохранении стояла, но папка Backup files пуста
Можно ли как-то откатить проект?
Хранит ли VS. резервные копии где-то еще?
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
Ответы с готовыми решениями:
Закрытие проекта Visual Studio 2010 при редактировании проекта
Когда редактирую любой проект в visual studio ultimate 2010 ( x64)студия.
Сборка проекта во время работы другого проекта
Здравствуйте! Можно ли в VS13, когда в одном решении находится несколько проектов, во время работы.
Откат IE с 9 на 8
Добрый день. Не подумав решили обновить IE с версии 8 на 9 на OS Windows 7 Домашняя расширенная.
Откат с 8.1 до 8
Здравствуйте!! обновил ноут через магазин до 8.1, она "почти" не запускается, т.е. после загрузки.
Как восстановить проект Visual Studio после аварийного выключения?
Внезапно отключили свет, на стационарнике был открыт проект в VS 2013 Ultimate.
Когда дали свет, я запустил VS, открыл проект и файл, в котором собственно и был весь код, теперь отказывается открываться в IDE (открывается в Блокноте), ещё и абсолютно пустой.
Обычно пишу под веб, в PhpStorm. Так проблема была подобная, решалась восстановлением из локальной истории файла, но в VS такой не нашел.
Есть какие-нибудь шансы восстановить нормальную работу проекта в IDE / восстановить содержимое файла?
- Вопрос задан более трёх лет назад
- 13246 просмотров
1 комментарий
Оценить 1 комментарий
Фиксация и проверка изменений в проекте в GitHub Desktop
GitHub Desktop отслеживает все изменения всех файлов в процессе их редактирования. Вы можете решить, как сгруппировать изменения для создания значимых фиксаций.
About commits
Similar to saving a file that’s been edited, a commit records changes to one or more files in your branch. Git assigns each commit a unique ID, called a SHA or hash, that identifies:
- The specific changes
- When the changes were made
- Who created the changes
When you make a commit, you must include a commit message that briefly describes the changes. You can also add a co-author on any commits you collaborate on.
If the commits you make in GitHub Desktop are associated with the wrong account on GitHub, update the email address in your Git configuration using GitHub Desktop. For more information, see «Configuring Git for GitHub Desktop.»
Repository administrators can enable rulesets for a branch to enforce specific conventions when committing. For example, a ruleset can require a commit to be signed, or for an issue number to be referenced at the start of a commit message. GitHub Desktop will display a warning and prevent committing if a commit does not follow the rulesets. For more information, see «About rulesets.»
Choosing a branch and making changes
- Create a new branch, or select an existing branch by clicking
Current Branch on the toolbar and selecting the branch from the list.
Choosing how to display diffs
You can change the way diffs are displayed in GitHub Desktop to suit your reviewing needs.
To change how you view diffs, in the top-right corner of the diff view, click
- To change how the entire diff is displayed, under «Diff display», select Unified or Split. The Unified view shows changes linearly, while the Split view shows old content on the left side and new content on the right side.
- To hide whitespace changes so you can focus on more substantive changes, select Hide Whitespace Changes.
If you need to see more of the file than GitHub Desktop shows by default, you can expand the diff.
- To see the next few lines above or below the highlighted changes, click the arrow above or below the line numbers.
- To see the entire file, right-click in the diff view and click Expand Whole File.
Selecting changes to include in a commit
As you make changes to files in your text editor and save them locally, you will also see the changes in GitHub Desktop.
In the «Changes» tab in the left sidebar:
icon indicates added files.
Creating a partial commit
If one file contains multiple changes, but you only want some of those changes to be included in a commit, you can create a partial commit. The rest of your changes will remain intact, so that you can make additional modifications and commits. This allows you to make separate, meaningful commits, such as keeping line break changes in a commit separate from code or prose changes.
To exclude changed lines from your commit, click one or more changed lines so the blue disappears. The lines that are still highlighted in blue will be included in the commit.
Discarding changes
If you have uncommitted changes that you don’t want to keep, you can discard the changes. This will remove the changes from the files on your computer. You can discard all uncommitted changes in one or more files, or you can discard specific lines you added.
Discarded changes are saved in a dated file in the Trash. You can recover discarded changes until the Trash is emptied.
Discarding changes in one or more files
- In the list of changed files, select the files where you want to discard the changes since the last commit. To select multiple files, click shift and click on the range of files you want to discard changes from.
- Click Discard Changes or Discard Selected Changes to discard changes to one or more files, or Discard All Changes to discard changes to all files since the last commit.
Discarding changes in one or more lines
You can discard one or more changed lines that are uncommitted.
Note: Discarding single lines is disabled in a group of changes that adds and removes lines.
To discard one added line, in the list of changed lines, right-click the line number of the line you want to discard, then select Discard Added Line.
To discard a group of changed lines, right-click the vertical bar to the right of the line numbers for the lines you want to discard, then select Discard added lines.
Write a commit message and push your changes
Once you’re satisfied with the changes you’ve chosen to include in your commit, write your commit message and push your changes. If you’ve collaborated on a commit, you can also attribute a commit to more than one author.
Note: By default, GitHub Desktop will push the tag that you create to your repository with the associated commit. For more information, see «Managing tags in GitHub Desktop.»
- At the bottom of the list of changes, in the Summary field, type a short, meaningful commit message. Optionally, you can add more information about the change in the Description field.
Optionally, to attribute a commit to another author, click the add co-authors icon and type the username(s) you want to include.
- To move your changes, click switch branches.
- To commit your changes to the protected branch, click Commit to BRANCH.
For more information about protected branches, see «About protected branches.»
To push your local changes to the remote repository, in the repository bar, click Push origin.
If you have a pull request based off the branch you are working on, GitHub Desktop will display the status of the checks that have run for the pull request next to the «Current Branch» section of the repository bar. For more information about checks, see «Viewing and re-running checks in GitHub Desktop.» If a pull request has not been created for the current branch, GitHub Desktop will give you the option to preview the changes and create one. For more information, see «Creating an issue or pull request from GitHub Desktop.»
Как откатить средства сборки проекта?
Проблема в том, что я пытаюсь скомпилировать проект, который был создан и написан на студии версии 22, у меня же 19, средств сборки v143 у меня нет, мне нужно как то ролбекнуть проект до 142.
Вот такая у меня ошибка при компиляции:
Ошибка MSB8020 Не удается найти средства сборки для v143 (набор инструментов платформы = «v143»). Чтобы выполнить сборку с использованием средств сборки v143 установите средства сборки v143.
- Вопрос задан более года назад
- 2375 просмотров
Комментировать
Решения вопроса 1
kokapuk @kokapuk Автор вопроса
Нашел ответ, нужно просто сменить набор инструментов для платформы.
Проект > Свойства > Общие > Набор инструментов для платформы
Ответ написан более года назад
Комментировать
Нравится 1 Комментировать