Visual SourceSafe 6.0 Replacing Same "Unchanged" Project Daily - vb.net

Using Visual SourceSafe 6.0 and Visual Studio 2005. I recently copied a project from one directory. Made changes to it to serve a different purpose. Changed the name of the project and put it in a new directory. I then Added the project back into SouceControl with a new directory. However, every day when I log in and get latest version on the the two projects. All of the files are replaced every day. Even though, no changes have been made to one of the projects in months.
Is there anything that would cause this to happen day after day? Was there a config file somewhere that didn't transfer correctly?
Any help is much appreciated.

In order to remove source control from a sln you must do the above. From my experience, everything else maybe fail.
Remove all .vsscc , .vspscc and .scc files from ALL folders.
ReadOnly false all files.
Open sln with an editor and remove GlobalSection(SourceCodeControl) = preSolution Section.
Open each prj with an editor and remove all tags that starting with Scc.

Related

IntelliJ has been deleting my project file, and now it deleted my ENTIRE PROJECT

I don't know what to say, nor what additional details to provide. My entire code is gone, my entire project, my entire work. I have nothing to paste because everything is deleted.
Can someone tell me how I can discern what the f*** is happening?
At first, one .fxml file kept being deleted repeatedly every time I would run the code.
Now, my ENTIRE PROJECT got deleted and I am totally lost.
The file that kept being deleted over and over again was inside of a package which contained other classes and another .fxml file which weren't ever deleted.
I am developing a JavaFX application.
UPDATE: All of the .fxml files of the project (.fxml files in all packages) got deleted physically from my SSD. So did my "lib"(which did contained active libraries) and my database file.
Only the class files have remained on the disk within the folder structer as they were. They are reachable through Windows explorer, but inside of InteliJ I literally saw how one by one everything was disappearing from the project structure until there was nothing left (just the "External Libraries" and the "Scratches and Consoles" are visible in the project structure).
UPDATE - 2 days later: I've not discerned the cause of all the above, but thankfully, I did push to GIT less than 5minutes to it all getting deleted. I did that because with how that single .fxml file was getting deleted I was worried of exactly what's happeneded happening, which is that my entire project gets deleted. I have sweeped through the logs and haven't found anything that seemed to be a clue as to what took place. I've restarted IntelliJ and imported the project anew, and that's what I'll end this with. I see not purpose in contacting IntelliJ support because I have no idea how to reproduce the issue.

Lightswitch lost data provider for data source connection

I have an odd situation on a VS upgrade from 2013 > 2015 outside of runtime.
App Type: MS Lightswitch HTML Client
DB Type: Oracle
Framework: 4.5
Story: I upgraded VS and replaced OPD.Net to the 2015 version. Works fine.
Then I converted my application. There were a lot of things to fix, but most were pretty easily remedied. I tested the application and it works as expected so I published to test server and everything checks out. Success! So I thought.
I want to continue developing the site. As I make db changes, they need to be reconciled to the intrinsic db in my project.
After clicking 'Update Database' I see this. So far so good.
What's expected is that after I hit 'Finish', all changes to the selected table should pull in to the lsml files. But this is what I get.
I've read a few places like The given key was not present in the dictionary, what key? [closed] but these all look like runtime remediations.
If I go back to the update screen and hit 'Previous', I get this.
I sifted through every freakin lsml file in text editor looking for where the provider is assigned. No luck. I also created a new proj to compare, nothing stood out. I also tried adding another data source which works fine. So ODP.net is not the issue. I am lost on what to do now. I searched all over the site, Google, for every error message with various tags. At this point I reach out to you, or anyone that may know what this is about.
Thanks ahead of time!
Note for future users upgrading a VS LS project with Oracle db.
Since a new version ODP.Net is required (in my case 2015), the provider name is going to change. To ensure LS knows the new provider, the data source lsml file needs to be updated. In my case I used GIT to help out. This is how I resolved it.
Steps:
After converting your project and replacing ODP.net to the current version.
Create a new data source using the new provider.
Save the project and re-open. This will cause lightswitch to recompile.
Open File Explorer and navigatye to the ProjectName.server folder. In a text editor (I used notepad) open the lsml files under ProjectName.server and there should be two lsml files (1 for the pre-existing and another for the new) or more if you have multiple sources.
Copy the connection properties of the new datasource to a new temp file on your desktop.
Roll back the entire solution using GIT or other source control.
Use text editor to open the lsml file for the original data source.
Update the GUID for DataProviderName with the values from the temp file in step 4.
Note: The connection string GUID should be left alone as it should match your GUID in the web.config file.
<DataService.ConnectionProperties>
<ConnectionProperty
Name="DataProviderName"
Value="9d8fdbb9-xxxx-4787-xxxx-49831d34ad4b" />
<ConnectionProperty
Name="ProviderInvariantName"
Value="Oracle.ManagedDataAccess.Client" />
<ConnectionProperty
Name="ConnectionStringGuid"
Value="36e67aca-xxxx-41a7-xxxx-a4546761b30d" />
<ConnectionProperty
Name="ProviderManifestToken"
Value="12.1" />
</DataService.ConnectionProperties>
Finally reload project and the changes should take effect allowing you to once again update your data source.
Thanks

Can we delete project.json file?

I just created a new project file. There is a project.lock.json file. Can we delete it?
Does it affect the build if my codes checked in without it?
Yes, you can delete it.
If you delete the 'project.lock.json' file, inside of Visual Studio. a new one will be created, based on the 'project.json' file.
I just deleted one because somehow it got corrupted. Instantly VS 2015 created a new one.
it wouldn't hurt to include this file if you have continuous integration/build server.
I hope it helps.

File Cannot Be Saved Because it is Write-Protected

I am using Visual Web Developer 2010 Express and I just added my files into Visual SourceSafe. When I try to save files in Visual Web Developer, it says, "The file cannot be saved because it is write-protected." It gives me the option to overwrite, but I don't know if that's how it's supposed to work. Ideally, I will click save and it will save the various versions into source safe. I've never used source safe before; my previous source-control system just enabled be to click "commit."
Files under source control are marked as read-only to prevent accidental changes to files and only made writeable when you check them out for editing.
Because there is no source control integration with the Visual Studio Express 2010 editions when you make an edit the file is not automatically checked out from source control so it remains read-only, thus causing the problem you have here.
You either need to check out the files before editing the project or force an overwrite and then check out the file after the event. Neither of which is an ideal solution.
When you add items to source control, such a Source Safe, it marks them as Read Only to ensure they are not written by anyone who has not checked-out the files.
You need to check-out the file you wish to edit, then edit it, save it, then check it back in.
Source Safe is rather old and not really maintained by Microsoft anymore - consider using something more modern like Subversion or Git.

Workspace.PendEdit not checking out files

I'm using the TFS 2010 SDK to programmatically check in edits to files into TFS 2010. The documentation on the TFS 2010 SDK is sparse at best. When I call the method workspace.pendedit() passing in an array of files I want to mark as having a pending edit, nothing is actually checked out. So when I call workspace.checkin() passing in workspace.getpendingchanges and some comments I get an exception that there must be at least one thing that has a pending change (which should be what I passed into pendedit). Any thoughts on why the app isn't marking the files as having a pending edit in the workspace?
Make sure you're doing everything in the right order so TFS knows that the file has changed. You have to:
Get the file from the workspace first.
Pend the edit
Make the changes to the file
Check in the workspace.
Example:
GetStatus status = workspace.Get(new GetRequest(migrationPath, RecursionType.None,
VersionSpec.Latest),GetOptions.Overwrite);
workspace.PendEdit(migrationPath);
checkInAuthor = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
It turned out that even though I had added the files and checked in the files, it seemed that the workspace didn't recognize that the files were there, and as a result I had to do a Get() prior to the PendEdit()