Are there any files in a Windows Form App (without a gitignore) that could potentially leak any private information? - security

This visual studio windows form app project was uploaded alongside a Visual Studio Code project that already contains a gitignore file. I'm not in the mood to add more to the gitignore file if this isn't a privacy issue when the repo goes public.

Related

Get the source code of a universal app from debug installation

So I lost the source code from my app, but it's still installed on my tablet.
It's a universal app for Windows 8.1 and I used Visual Studio 2015. It's not in c:\Programmes Files\WindowsApps... because it was installed from Visual Studio.
Is there a way to get the xaml and cs files?
Thanks.
Folder where application installed usually is C:\Program Files\WindowsApps
Read this manual to get access to this folder.
I was able to get HTML and JS code of my application.
When I start my application and trying to get installed location with code like:
var package = Windows.ApplicationModel.Package.Current;
var installedLocation = package.InstalledLocation;
I'am getting folder inside my project folder. So, if you have run your app from Visual Studio it should be installed inside project folder.
Even if you find folder, probably you will need decompiler to view code.
And even decompiler might not help you. I have tried Telerik JustDecompile and JetBrains DotPeek without result. Store App is not like .Net app. So, If your app is compiled to native you can probably decompile, but not on 100% and it would be not very easy

Using Visual Studio 2015 for existing node-js client-side web projects

I have a team working on a client-side node.js application. The sources are stored in a source control. I'd like to modify and debug this application in Visual Studio 2015. They use other IDEs, and I would not like to add additional VS-specific files such as .sln to source control.
I'm able to clone the repository, create a separate empty solution and add the repository as an "Existing Web Site". However, Visual Studio do not recognize package.json, and do not install dependencies as it would for MVC6 projects. Consequently gruntfile.js would not work either.
Is there any way to make Visual Studio see and process package.json, or I'm on a wrong track here?
Instead of using the "Existing Web Site" option, create a new solution and add items to it. Web Site Projects types are a different, legacy project type.

How to know database file path after publishing project in visual studio?

I published my project in visual studio by right-click on my project and click publish, the problem is the database file path is changed and i can't find it, i need the path to put it in connection string
can any one help me, please.
Visual Studio will publish an application to a folder where you've told it to; by default it's [project directory]\publish\. The files for a particular publish will be in [publish directory]\Application Files\[revision number]\ by default.
You can check the path by right-clicking on a project in the solution in Visual Studio, selecting Properties and then the Publish tab. If the path is relative, it's in the project directory.
In the Application Files folder, you will find a bunch of files with .deploy extensions; if you've put your configuration in app.config, you should be able to edit it by opening the file [Project name].exe.config.deploy in a text editor.
It's an XML file and you should be able to identify the part you need to change. It will typically look like
<setting name="SettingName" serializeAs="String">
<value>some setting value</value>
</setting>
Installing the application with the created setup file, assuming that the hand-changed revision is the newest one in the Application Files folder, should install it with the new connection string.
I still urge you to consider just changing the app.config file within the project and doing a publish again, this is the way you should be doing it.

How to create a Web App project without page.designer.cs files?

In Visual Studio 2012 there is no website deployment, ok I switched to Web Project, now it has generated tons of page.designer.cs files, how can I make a web app project without the designer.cs files ?
Visual Studio create these files for easiness of coder, you will always get these kind of files when you create a new web app project. These files creates the necessary code you need for designing the web page.
But once you publish the web app to the server using the VS2010 publisher, these files are gone and only the .aspx files are remained. Why does this happen? because your code i.e. .cs files needs to compiled before it can be published on the server.

Visual Studio 2012 Corrupting ApplicationHost.config File

I just installed Visual Studio 2012 RTM. During the process of trying to create a new web project, I receive the following error:
"Web application projects are currently configured to use IIS Express. To switch back to using the Visual Studio Development server, change the development server option under the Projects and Solutions/Web Projects category of the Tools/Options menu. Configuring IIS Express failed with the following error: Filname: \?\UNC\DEV-FILES\home\mike\MyDocuments\IISExpress\config\applicationHost.config. Line number:1. Error: Configuration file is not well formed XML"
...and project creation subsequently fails.
I already know that I can resolve the this by using the VS dev server, but I should also be able to use IIS when necessary.
When I view the applicationHost file in question, its size is 0kb. It looks like Visual Studio 2012 wiped the contents of the file completely out. I've taken clean backups of the applicationHost file from c:/inetpub/history/ and restored them in the IISExpress folder. Again, when I attempt to create a new project through VS 2012, the file goes from 85KB back down to 0KB.
So I guess I'm trying to figure out why VS 2012 is writing to the applicationHost.config file, what it's trying to write, and how I can resolve the issue.
Thanks,
Mike
I had this problem and solved it by removing encryption on the IISExpress folder. You may or may not need to remove encryption on your My Documents\Visual Studio 2012 folder as well.

Resources