Visual Studio 2013 - New Project

Hi
Many years ago I wrote a VB6 program for school students for diet analysis in terms of energy and a range of vitamins and minerals.  It drew comparisons against the national guidelines.  Results were tabulated, graphed and output provided in Word
and Excel files.  The VB6 program used an Access database containing about 850 foods. It has been used by quite a few schools and appears to always be used across a network.
My intention is to re-write the whole program in Visual Studio 2013 using Visual Basic code.  I intend to refresh the whole program and add a wider range of foods and update the comparisons using the latest national guidelines and food label formats.
This will be my first attempt at Visual Studio and I intend to use a Windows Forms Application approach.  The data used is "static" - it does not change it is simply a "read only" file - get the data, multiply for mass and add up each
category (energy, vitamins and minerals).  It is a "file of data" rather than a true database.  In reality a 1000 food data file should only be about 200 Kbytes.  As an Excel file it is only 150Kbytes but as an Access file it is bloated
up to a 550Kbyte file.
The program is not sophisticated, so, should I be using a WPF Application or a Window Forms Application?  The WFA just feels a bit more familiar than a WPF.  Also, the program is intended for loading onto a network at some schools or on a stand-alone
computer.
My greatest concern is about the choice of approaching the data.  A "true" database is not needed because the data is simply for about 1000 rows of food each with about 20 columns of data (numeric and text).  The Access file is simple
but I could create an mdf file (I think) but would that be an advantage?  With the Access data I appear to have loaded the file and created a DataAdapter and I have experimented with GetData() which works.  My attempts to use ExecuteReader() failed
completely.  Is there a better approach?  such as SQL "DataTable.Rows(RowPosition)(“column name")”??  It seems a very sophisticated method for a small file of data.
The Access Database that I have experimented with in VS2013 appears to use Jet Drivers???? which proved to create a few problems for installations in the past.  Should I be using an mdf file approach??  I will need to distribute the data in a "resx"
file.  I could use SQL Server Management Studio (free download) and then use VS2013 to read the Access file and build a new mdf database.....
I am not convinced that I have the best solution.  Any comments and suggestions would be very greatly appreciated.
Many thanks for reading this far.
Winchestermili
Winchestermili

Frank
Looking good!  The "attachment" to a new project worked first time.
I can see all the new Classes by hovering a pointer over the "declarations" above "Public Class Form1"
Seems to access the VBNetForum URL quite quickly using a high speed BB connection.
I am greatly looking forward to the next stage...........
Regards
Keith
Winchestermili
Keith,
I intentionally truncated that post with “let me know when you’re that far along” simply because it’s very easy to get lost
with a concept that’s new. This isn’t as different as you might think though – you’ve been using a database, and now you’ll be using instances of a class (various ones).
Over the years here, I’ve seen many times where people use databases because they assume “that’s the only way to do it”. The
“it” actually being encapsulation.
Encapsulation
is what they need and certainly a database provides that (and a lot more), but it’s not the only way it can be done.
Think about this a bit: A DataRow encapsulates the related data for whatever it is. For example maybe it’s a person’s data –
you’d want to keep the person’s first name, surname, and things like that all together because it defines something related to that one person. You then have a collection of those DataRows in a DataTable.
In much the same way, what I have here is similar: Instead of a DataRow, I’m using instances of a class. Instead of columns
in a DataRow, I’m using properties of the instance, and instead of a DataTable, I’m using a List(Of Class).
…the concept is identical.
Classes are a means of building an object in OOP. In and of itself, it’s really just a template or a blueprint (overused metaphor).
Deborah Kurata put it best, in my opinion, when she said that a class is like a cookie-cutter and the objects created are cookies. You eat the cookies, not the cookie-cutter!
A class works that way exactly: You can’t “consume” a class; you consume the objects (instances) created by them and in this
case, like a DataTable housing DataRows, I’m storing them in a very specific type of collection known as a List(Of T).
I don’t want to get too far adrift about classes and/or OOP here – not that I would mind the discussion – but it’s a new concept
to you and it’s easy to get confused about what’s doing what. I’ll get more to the specifics next.
That entire class library is the data layer; it doesn’t work with controls of any sort, only the data.
That said though, in the following I’ll explain how controls can be ‘assisted’ by the methods in the classes.
The main class in this is the one called “FoodComposition”. That one is only barely started – the
only
method in it so far is an overloaded way to add a new instance to a list of them.
Two of the classes are really just ‘supporting classes’ – those being the ones called “FoodCategory” and “LabelNote”. Don’t
get me wrong here, they do have methods in them (with more to be added), but you won’t too much be working with those in the user’s program – you will in the program that I’ll create for you to add/modify/remove* and so on, but for now let’s set those two
aside.
*  The fact that these are “supporting” classes, I have it set up such that you cannot remove an instance of those if there’s
a reference to them in FoodComposition. If you want to see where/how I’m doing that, look at the code of the class FoodCategory, for example, and go to line 633, then read the code of that method named “Remove”.
The one class in the bunch which is pretty much self-contained is the one called DietaryReferenceValue (DRV is the name you
used). That one makes for a good topic to explain how I can provide methods which lend a helping hand to your controls but don’t, directly, have anything to do with controls.
I have a method in that class named “GetAllGroupNames” which is a function that returns a string array containing the names
of each instance’s group. That might be used, for example, if you wanted to show a ListBox or a ComboBox to allow the user to select one of the group names:
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim url As String = _
"http://www.fls-online.com/VBNet_Forum/12-13-14/NutritionData.xml"
GetNutritonData(url)
ListBox1.Items.AddRange(NutritionData.DietaryReferenceValue.GetAllGroupNames(drvList))
End Sub
So, for example, when the user selects one of them:
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles ListBox1.SelectedIndexChanged
Try
If ListBox1.SelectedIndex > -1 Then
Dim selectedGroup As String = _
ListBox1.Items(ListBox1.SelectedIndex).ToString
Dim drv As NutritionData.DietaryReferenceValue = _
NutritionData.DietaryReferenceValue.GetInstance(drvList, selectedGroup)
MessageBox.Show(drv.ToString, drv.SexAndAgeGroup)
End If
Catch ex As Exception
MessageBox.Show("An error occurred:" & vbCrLf & vbCrLf & ex.Message, _
"Program Error", MessageBoxButtons.OK, _
MessageBoxIcon.Warning)
End Try
End Sub
As you can see there, I’m using the .ToString method which I have overridden in the class. That’s also part of what I wanted
to discuss: What it gets.
Currently I don’t have much else (other than maintenance routines like adding, removing, renaming) in there; the methods that
you use are methods that I set up – but in the words of Hamlet, “therein lies the rub” … I don’t know what you want!
Give some thought to just what methods you might want to have in there. For example maybe you might want to have a method which
will return the value of one specific nutrient which you specify. I can do that, I just don’t know yet that you want it so it’s not there.
Quite often I’ll also provide what I’m come to call “convenience properties”. For example with the property named “Sodium”,
I might have another property (read-only) named “Sodium_String” which returns a string in whatever format you wanted it to have.
These are things I don’t know that you want and also things which you may not have known can be done, thus this writing. ;-)
The other day I asked about units. It may not be where you want to go with this but I’d also like to offer that we can provide
more granularity to the nutrients themselves. Don’t get me wrong, it’d be an overhaul of what I have right now, but I’ll do it if you want to proceed:
Imagine that we have a class, all by itself, that we call “Nutrients”. At the very least that class would have members like
Name and UnitOfMeasure, but it could have anything else you wanted. An example that comes to mind might be the URL to a page on Wikipedia about it, or maybe a URL to an appropriate image or … whatever you dream of here.
So then when using them in the other classes, “Calcium” would, itself, be an object which has a name (“Calcium”), a unit-of-measure
(maybe “milligram”), and so on.
It’s a lot to take in all at once and even this is something you may want to reread, but do give it thought. Let me know what
methods you want in the classes which will help you in your user’s program.
Still lost in code, just at a little higher level.

Similar Messages

  • Error When Trying To Publish In Visual Studio 2013 C# Project

    I have a C# Winforms app in Visual Studio that has a problem. when I click on Project->Properties->Publish and click on the Options button, I get a prompt saying "An error occurred trying to load the page. An item with the same key has already
    been added."
    What causes this and how do I fix it?

    Carl,
    Here's a screenshot of my project's Solution Explorer:
    OK, so I have a file called "Resources.resx" and another folder down below called "Resources" which contains images. Which one should I rename and what do I do about possible errors that might pop up when I try to Build or Run the app?
    Hello,
    I mean the .resx file, but based on your screenshot, the Resources.resx file was generated by Visual Studio and it was not added by yourself, right?
    This issue has beend discussed in the following thread, you could compare it with yours to narrow down this issue, since the error message shows that the project added duplicate data.
    http://stackoverflow.com/questions/3003914/vs2010-an-item-with-the-same-key-has-already-been-added
    You could follow that thread to check both the .resx file and the .csproj file to see whether there are duplicate data have been added.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Visual Studio 2013 slows down + crashes when using Source Control features.

    I have spent two full days trying to resolve this issue but no luck so here we go,
    I have created a project using Visual Studio Team Foundation Server plug-in in the past. Later on I switched to
    Microsoft Git Provider.
    Now when I connect to that project in the Team Explorer and double click on the solution to work on it locally it somehow changes the plug in to Microsoft Git Provider automatically and of course I can't
    Commit/Commit and Push since I receive following error in the Team Explorer,
    An error occurred. Detailed message: Failed to open directory 'C:/Users/.../AppData/Local/Application Data/'
    Manually changing the plug-in to the Visual Studio Team Foundation Server
    results in a broken Team Explorer as below,
    With Settings leading to an empty pane, and also a warning in the Team Explorer's Changes page telling me the message below if I click on Pending Changes...
    Microsoft Git Provider is not the current Source Control plug-in. Change Plug-in
    And manually selecting the solution from Solution Explorer, right click and
    Add Solution to Source Control, leads to never ending hour glass and (Not responding) visual studio.
    New Projects
    Creating a new project is straight forward, unless I "Add to Source Control" is checked. If so, again never ending process if Microsoft TFS plug-in is selected in the tools and eventually me Ending the Visual Studio task. And a VERY long process
    (40+ mins) if I have chosen Microsoft Git but that finishes successfully rather.
    New TFS project from Team Explorer
    If I create a new project in my Online Web Studio
    Click on Open with Visual Studio Link => Opens and connects to a my newly created TFS in team explorer.
    Clicking new in Team Explorer under Solutions to create a new solution and bind it to this Repo
    leads to straight crash of Visual Studio and restarting attempt of VS.
    So I really can't use Source Control from visual studio other than cloning GitHub's existing repo's on Visual Studio and Committing my current Microsoft Git managed projects.
    I have attempted
    Repairing Visual Studio (no luck in results)
    Devenv.exe /setup (no luck)
    Trying to scrap the SCC info on my solution then at least it won't get picked up by source control then I can Check it in as a new project. (no luck and the solution picks the Microsoft Git upon opening it by clicking on the .sln file.) I have followed
    these steps in this stack overflow answer.
    And lots of mucking around like removing my workspaces almost Thousand times and putting them back, binding and etc.
    I am really stuck on this and it's holding me back from staring a new project (which is problematic using Adding to Source Control) and unfortunately is dependent on the old project (which is developed under Visual Studio Team Foundation Server Plug-in which
    is throwing tantrums)
    Would like to hear you pro-s input on this
    Using 
    Visual Studio 2013 Community edition (recently switched from Pro to Express to Community)
    Windows 7 (64-bit)
    Git tools
    Git windows installation
    Nuget Package manager
    Visual Studio Log File
    http://filesave.me/file/50620/log-txt.html
    Mehradzie

    Hi Mehradzie,
    Based on the description, seems you're working with Git team project in Visual Studio Online(formerly Team Foundation Service). I'd like to know whether you mean Visual Studio Git command tool as the plug-in, and if you're trying to create solutions/projects
    with Visual Studio and add them to the created Git team project.
    From the screenshot, you're not connect to the Git team project by using Team Explorer. To work with Git team project locally, you can follow the instructions as below:
    Connect to Git team project by using Team Explorer, after that you might install Git tools if you connect to the team project for the first time
    Clone the remote Git repository to a local git repository and set the path to local git repository
    Create a solution and select Git source control, also saved to the local path of the local git repository
    Select your branch, and then click "Changes" and Commit the changes
    Click "unsynced commits" and push the commit to remote git repository
    You can also refer to the links below for more information about getting started with Git in Visual Studio Online.
    http://www.visualstudio.com/en-us/get-started/share-your-code-in-git-vs.aspx
    http://blogs.msdn.com/b/visualstudioalm/archive/2013/01/30/getting-started-with-git-in-visual-studio-and-team-foundation-service.aspx
    If you still have any other concerns, please elaborate more details about your scenario. Thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can't Create New Excel Project Visual Studio 2013 Office Tools The Project Cannot Be Created

    I am having this issue on two computers. If I try to create an Excel 2013 Workbook C# in new projects, and choose create a new workbook, it starts to open Excel, and then I get this error in VS
    I have tried:
    Uninstall & Reinstall of VSTO from the Visual Studio Installer
    Uninstall & Reinstall of Visual Studio 2013 Ultimate, (manually removing anything with visual studio that was left over)
    Manually turning on the add-on Visual Studio Tools for Office Design-Time Adapter for Excel
    Installing VSTO by hand
    Enabling Macros
    Running VS as administrator
    Uninstalling & Reinstalling Office 2013 Pro Plus OLP
    I have made this change to excel:
    Like I said, this problem occurs on TWO pc's.  I have tried 2013 Visual Studio R1 and R2.  Does anyone have any ideas?
    Edit 3-1-2015
    There is still no answer to this, I have tried target frameworks:
    4.0
    4.5
    4.51
    And Running as Administrator.  Recently I upgraded to the CTP of Visual Studio 2015 Ultimate and the same problem exists.

    Thanks for the reply.
    The issue is not reproducible for me and I can confirm this not a known issue. We might need to do deeper troubleshooting at the repro machines.
    Because of its complexity your question falls into the paid support category which requires a more in-depth level of support.  If the support engineer determines that the issue is the result
    of a bug the service request will be a no-charge case and you won't be charged. Please visit the below link to see the various paid support options that are available to better meet your needs.
    http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
    Sangeeth,MSFT

  • Visual Studio 2013 is creating new feature every time new list definition is added

    We are using Visual Studio 2013 and details are as under:
    Microsoft Visual Studio Ultimate 2013
    Version 12.0.30501.00 Update 2
    We we add a new list definition in our project, it creates a new feature with it. If we delete the feature and add list definition in the existing feature, list is created but columns are not added in the list.
    Same thing happened if we rename "Feature1", a new feature is created every time a new list definition is created.
    This doesn't happen when we add a Visual WebPart.
    Also, we have three different custom list option in the drop down in new list creating wizard.
    Is this a bug or we are doing something different.   
    http://farhanfaiz.wordpress.com

    Intellisense has a bug in VS2013 where it doesn't recognize InitializeComponent when you start working on the XAML.  My feeling is that if you try to compile this app, it will run fine (as long as there are no actual errors).
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • How do I put a project using nmake (or other make util) into a visual studio 2013 project?

    I'm not asking how to convert it over to visual studio's internal setup.  I want to use the custom build feature to build the code prior to building the current project so that the library generated will be available to the project.
    Steps I've used I got from
    here:
    Create a win32 dll project.
    Copy the files into a subdirectory under the project.
    In the Solution Explorer, I create a Filter that I then add all of the source, headers and Makefile to.
    I select all of the items in that filter group and right click and select properties.
    In Configuration Properties->General, I change Item Type to Custom Build Tool and click Apply. (In the Visual Studio 2013 community, this sometimes comes up with:
    An error has occured while saving the edited properties listed below:
    One or more values are invalid. Object reference not set to an instance of and object.
    Yeah, that's not cryptic. 9.9.  When that happens, I just click Ok and then click on the parent window, and it will ask me
    Do you want to save the changes you've made to the property page?
    To which I click Yes and it seems to apply it to all the files and I then reopen the property page again.
    I then go to Configuration Properties->Custom Build Tool->General and set
    Command Line to:
    cd subfolder
    nmake
    For Outputs, I set it to subfolder\bin\output-file.lib.
    For Link Objects, I leave it as Yes.
    Clicking on ok and then building gets me the following error:
    LINK : fatal error LNK1104: cannot open file 'subfolder\bin\output-file.lib'.
    Yeah, no kidding, it hasn't been made yet.
    What am I doing wrong? Thanks for your help.
    A
    Adrian

    I was trying to get it to be part of another project, and the information from Specifying Custom Build Tools stated:
    If the Custom
    Build Tool folder does not appear, the file extension of the file you selected is associated with a default tool. For example,
    the default tool for .c and .cpp files is the compiler. To override a default tool setting, in the Configuration
    Properties node, in the General folder,
    in the Item Type property,
    click Custom Build Tool.
    Click Apply and
    the Custom Build Tool node
    is displayed.
    Indicating that what I was trying to accomplish could be done.  However, since this is 3rd party code, this seems to be a cleaner way of doing it.
    Thanks,
    A
    Adrian

  • Evaluation period has ended trying to create a BizTalk project in Visual Studio 2013 ultimate

    Hi,
    I am doing a proof-of-concept with BizTalk, and I am using evaluation versions of everything involved, SQL server 2012 SP1, Windows server 2012, Visual Studio 2013 R2 and BizTalk 2013 R2. 
    All worked (relatively speaking) until I finally came to creating a BizTalk project in Visual Studio 2013 R2.
    I installed the relevant BizTalk components on that machine (windows 8.1 32-bit, non eval) and then I get the BizTalk evaluation period has ended error message. 
    I am sort of stumped, I have a long while left on the evaluation period on all involved software, anyone knows what this is about?

    Hi,
    Try repairing the BizTalk installation.
    Mark As Answer or Vote As Helpful if this helps.
    DPS Bali: I repaired the BizTAlk installation and it worked!
    Thanks a lot for your help!!

  • WPF 4.5 doesn't show the option to open the project in Blend for Visual Studio 2013

    Hi,
    In my WPF 4.5 project in Visual Studio 2013, when I right clicked the name of my project it doesn’t show the option to open in Blend for Visual Studio 2013….. and when I try to open the project with Blend for Visual Studio 2013, it doesn't show anything.....
    I don't see the project nor the UI of my WPF 4.5 project
    How I can open my project in Blend for Visual Studio 2013???
    Thanks!!!
    Regards,

    Hi Jaquense,
    open Blend. Open Project/Solution and select the .sln-file of the project you've created in visual Studio. That's it. In the Project Explorer in Blend you should see your files and you should be able to open up your XAML-files.
    Thomas Claudius Huber
    "If you can't make your app run faster, make it at least look & feel extremly fast"
    My latest app:
    The "Womanizer" :-)
    twitter: @thomasclaudiush
    homepage: www.thomasclaudiushuber.com
    author of: ultimate Windows Store Apps handbook |
    ultimate WPF handbook |
    ultimate Silverlight handbook

  • SQL Server 2012 with Visual Studio 2013 with SSIS/Integration services project?

    I wanted to build an integration services project to import data from multiple sources using a vendor's API.
    I wish I could recall how I got to the point where I was able to build one and have it run successfully, but I had to install so many things that I honestly don't remember.
    However, I noticed my PC booting really slowly after that, and I saw that I had components of VS 2010, VS 2012 and VS 2013 installed, along with SQL Server 2008 and 2012.  So I uninstalled a bunch of stuff, hoping to get to where I had only the most
    current versions of all, that were compatible with my corporate environment.  So I was aiming for Visual Studio 2013 (Premium, I think) and SQL Server 2012.
    Took me 2 days.  Now I'm at the point where I think - and I'm here to learn if I'm correct - that I cannot get an oData Source component into my project and use VS 2013 IF I want to stick with Sql Server 2012.  Is that correct?  
    I get very confused when trying to determine how the acronyms relate:  SSIS, SSDT, SSDT-BI, etc.

    Hi Anonymous11847,
    SSDT: Microsoft SQL Server Data Tools for Visual Studio 2010, it contains Business Intelligence project templates for Analysis Services, Integration Services, and Reporting Services that support Visual Studio 2010. This can be installed when SQL Server is
    installed. It supports various SQL Server versions as follows:
    SSAS projects can target SQL Server 2012 or lower
    SSRS projects can target SQL Server 2012 or lower
    SSIS projects can target only SQL Server 2012
    SSDT-BI for VS 2012: Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2012, it contains Business Intelligence project templates for Analysis Services, Integration Services, and Reporting Services that support Visual Studio 2012.
    This needs to be separately downloaded and installed. It supports various SQL Server versions as follows:
    SSAS projects can target SQL Server 2012 or lower
    SSRS projects can target SQL Server 2012 or lower
    SSIS projects can target only SQL Server 2012
    SSDT-BI for VS 2013: Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2013, it contains Business Intelligence project templates for Analysis Services, Integration Services, and Reporting Services that support Visual Studio 2013.
    This needs to be separately downloaded and installed. It supports various SQL Server versions as follows:
    SSAS projects can target SQL Server 2014 or lower
    SSRS projects can target SQL Server 2014 or lower
    SSIS projects can target only SQL Server 2014
    So if the SQL Server version is SQL Server 2012, we should install SSDT or SSDT-BI for VS2012 to create SSIS project.
    Reference:
    Microsoft SQL Server Data Tools Update
    If there are any other questions, please feel free to ask.
    Thanks,
    Kathrine Xiong
    Katherine Xiong
    TechNet Community Support

  • Unable to add controller to MVC project on Visual studio 2013

    I am trying to add a empty MVC5 controller to the MVC project. I am getting an error as soon as I try and create the controller.
    The system is running on Windows 7 with Visual studio 2013 update 4. I have uninstalled and re installed visual
    studio with no success.
    

    Hi Mahesh.Janardhanan,
    If this issue is related to web app, you could ask this question in the ASP.NET forum:
    http://forums.asp.net. If then, you could get an answer more quickly and professional. Thanks for
    your cooperation.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to see function return values in Visual Studio 2013 debugger

    Hi!
    I can't see function return values in
    Microsoft Visual Studio Ultimate 2013
    Version 12.0.31101.00 Update 4
    Microsoft .NET Framework
    Version 4.5.51650
    Installed Version: Ultimate<o:p></o:p>
    as described in  http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/27/seeing-function-return-values-in-the-debugger-in-visual-studio-2013.aspx
    So what can I do to get this functionality back?
    MsdnMezzo

    Hi MsdnMezzo,
    Reference:
    http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/27/seeing-function-return-values-in-the-debugger-in-visual-studio-2013.aspx
    If use the same sample in the above blog provided by you, how about the result? Could you debug it with the same steps? I could debug it in my side using the VS2013.
    So to make sure that whether it is your VS IDE issue, please debug it with this sample, if it works well, I doubt that we would think about your specific project and the debugging steps.
    If so, to really repro this issue, could you share us a sample with one drive? You could upload your project to one drive and share us the downloaded link in your new reply, I will download and repro this issue in my side.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Visual Studio 2013 Express for Windows - InitializeComponent() does not contain a definition issue

    Hi,
    I have recently downloaded Visual Studio 2013 Express for Windows (Windows Store App version), with Update 1.
    I create a blank app. I right-click on InitializeComponent() in the MainPage.xaml.cs and select Go To Definition. It brings me to the .g.i.cs file where this method resides.
    I go into the designer for MainPage.xaml and create a grid of 2 rows and 2 columns (all at 1*). I add one button, doesn't matter where. I double click on that button to add a click method to MainPage.xaml.cs. Without entering anything into the button click
    method, I scroll up and InitializeComponent() has an error and tells me there is not definition, even though I was looking at the definition a minute ago. I found I could unload the project and reload it and InitializeComponent() would have the definition
    in the .g.i.cs file but as soon as I add another button click or anything else I run into the same error. It seems as if the .g.i.cs file is not automatically regenerating, or it is being deleted all together when the button click method is added to the xaml.cs
    file.
    Everything I have done up to this point is very vanilla. I installed VS '13 Express for Windows, didn't change any VS setting, created a project and ran into this issue. I installed Update 1 thinking there might be a fix from the update--no luck. The xaml
    file Build Action is Page and the Xaml.cs file is Compile.
    I have tried deleting the MainPage.xaml file, after the creation of a project, and adding a new MainPage file with the added templates VS wants to include, and I still run into the same issue.
    I have searched for answers the past few days but haven't found anything that addresses my issue (most of what I found addresses VS '10 but their InitializeComponent() issues aren't the same as mine). Any help the MSDN community can provide would be
    a great help. If worst comes to worst, I will re-install VS and see if that corrects it--this would be a last-ditch effort though.
    Thank you for any help you may be able to provide

    Intellisense has a bug in VS2013 where it doesn't recognize InitializeComponent when you start working on the XAML.  My feeling is that if you try to compile this app, it will run fine (as long as there are no actual errors).
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Visual Studio 2013 does not rebuild all code resulting in old code deployed through wsp

    I recently converted my SharePoint 2010 project from Visual Studio 2010 to Visual Studio 2013. I have the Premium version with Update 1.
    I quickly noticed that 2013 has bugs. For instance I could get a build error out of nowhere while developing, stating that a method recently added to Class
    A used by Class B, does not exist. The only way to resolve is to restart Visual Studio. Sometimes a rebuild would do the trick too.
    I can live with such quirks as a developer. The big problem is that it does not build the latest version if you are using the "Publish to File System"
    to get a wsp for deployment on another server.
    I've had problems with incomplete builds since my first deploy with wsp built by Visual Studio 2013, but I was not able to pinpoint it with certainty until
    last night.
    I have two classes used by a timer job. In a new version they back up some files after using them. After upgrading with the new wsp, I restarted the timer
    job service on all servers and ran the job, but the files did not back up. So I went and added a log statement to the backup code of one class and did another clean/rebuild/publish to file system from Visual Studio. I upgraded using the new wsp and then restarted
    the timer job service on all servers. When I ran the timer job service, the class where I added the log statement backed up the files it should. The other class still did not. So I added a log statement to this class as well and deployed that. Then this class
    started to backup files too.
    So I conclude that Visual Studio 2013 is failing at its core in a very dangerous way leaving assemblies built in an unknown, incomplete limbo state.
    I am downgrading all projects to Visual Studio 2012.
    This post is mainly to share my experience with the community, but if someone at Microsoft wants to investigate the issue, here is a suggestion on how to reproduce:
    Have Visual Studio in Debug build.
    Make a change to a class in a SharePoint project.
    Deploy the change to a local SharePoint installation.
    Change to Release build.
    Use Publish to file system to get a wsp. Open this wsp, copy the assembly, reflect and investigate to see that code change is actually there.
    Tore Olav Kristiansen

    Hi,
    As this is a Visual Studio question, I suggest you post it to Visual Studio Forum, you will get more help and confirm answers from there.
    http://social.msdn.microsoft.com/Forums/en-US/home?category=visualstudio
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Launching VB6 Editor after installing Visual Studio 2013 results in "Please wait while Windows configures Microsoft Visual Studio..."

    I have had various versions of Visual Studio installed beside Visual Basic 6.0 Enterprise for some time with no problems, most recently Visual Studio 2012 Premium.
    I recently installed Visual Studio 2013 Premium, and now every time I open VB6 I get a dialog that says "Please wait while Windows configures Microsoft Visual Studio Professional 2013" that shows a progress bar. After it finishes (30 seconds or
    so), it launches again and again and finally VB6 will open. This happens with each instance of VB6, regardless if I've already done it once and never run VS2013 in between.
    If I cancel the dialog, I get this error message in a dialog: "Error 1712. One or more of the files required to restore your computer to its previous state could not be found. Restoration will not be possible." Several more "Please wait"...
    dialogs will appear and if I continue to cancel, eventually I'll get the VB6 editor. It appear to work fine despite the error messages.
    It seems to me that the VS2013 installer flagged some dll's or other files to be rolled back whenever starting VB6. It doesn't appear to be necessary, and I'd like to avoid playing the "Please wait" wack-a-cancel-button game before launching each
    instance of VB6 (or waiting several minutes for no reason). So how do I fix this?
    Note: I've seen something similar happen in Outlook on a different PC when upgrading from 2010 to 2013. The same sort of "Please wait"... dialog would appear each time I opened Outlook. Judging by the "similar" questions that popped up when
    entering this forum post, I'd say this is a general problem with upgrading older versions or installing newer versions of major Microsoft software side-by-side.
    /* Don Reynolds */

    I found the answer!
    I was having the exact same issue, and I was search for a solution and I happened across the following thread: http://social.msdn.microsoft.com/Forums/en-US/f4b0fd38-f4f9-41ea-bd8d-834203a175d2/building-visual-studio-2010-project-triggers-please-wait-while-windows-configures-visual-studio?forum=vssetup&prof=required
    Scroll a small bit down, and there is a post by Barry Wang explaining that you need to use event viewer to find out what is missing. Anyway, I opened event viewer, then open VS 6, then hit refresh in the event viewer (under Windows Logs -> Application)
    and saw a warning message from MsiInstaller. It gave me the following message:
    Detection of product '{9C593464-7F2F-37B3-89F8-7E894E3B09EA}', feature 'Visual_Studio_Professional_x86_enu', component '{E3FF99AA-78B9-4A06-8A74-869E9F65E1FE}' failed.  The resource 'C:\WINDOWS\Microsoft.NET\Framework\URTInstallPath_GAC\' does
    not exist.
    I opened an elevated command prompt, I navigated to the C:\WINDOWS\Microsoft.NET\Framework folder and verified that 'URTInstallPath_GAC' didn't exist, and then I did "md URTInstallPath_GAC".
    Closed and reopened VS 6, and it instantly opened - no "Please wait" message.
    Now this may or may not be the same problem you are having (problem is - I have had it happen on two separate computers now with VS 6 and VS 2013 installed), but it should point you in the right direction. In fact, you should be able to use the Event Viewer
    for anytime the "Please wait" message shows up for any application, and then once there find out what is really missing.

  • Visual studio 2013 cannot connect to SharePoint 2013 site

    I am developing a SharePoint 2013 provider-hosted app (MVC web application). When I am trying to deploy the application on the SharePoint dev site, I am getting below
    error :
    Cannot connect to the SharePoint site: . Make sure that this is a valid URL and the SharePoint site is running on the local computer. If you moved this project to
    a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project.
    I also checked the SharePoint site url is working in the browser on my development machine.
    If any one of you have faced or/and resolved a problem like this one, please let me know.
    Thanks.
    Satish

    Hi,
    1. Please check if the Site URL is right in Visual Studio 2013 project.
    2. Try to use the administrator account of the developer site to connect.
    3. Reinstall Office Developer Tools.
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • What happened to Lenovo ThinkPlus USB Keyboard with UltraNav ?!?

    Hi all, I want a keyboard that works EXACTLY like my T410 native keyboard. I found the ThinkPlus USB Keyboard with UltraNav that looks wireless, but it's been discontinued as of Sept 2009...anyone know what's up with that? I also saw this Lenovo Fing

  • Application Page list not displaying.

    Application page list does not display when clicking on the application in application builder page. However if I type the application number and a valid page number in the URL I can access the application. All the pages work as well as the page edit

  • Crystal Reports - Wildcard in Command parameter

    This is what i use now {Command.COUNTRY} like {?Country} ?Country is a value entered by the user, this could be upper case or lower case and could be part of the country name. What is the crystal reports equivalent to achieve the above. something lik

  • OSB proxy service lookup

    I am creating a dynamic route in an OSB proxy service. Is there a way to lookup a proxy service using its "Endpoint URI" ? Thank you for any help! Jeff

  • Importing songs from CDs - not showing up in my Library

    I am aving trouble importing songs from CDs.  I completed the process as instructed - using the "import this CD" button (I have done this many times successfully). The import process ran OK.  When the Import process completed, I looked in my music Li