Click here to Skip to main content
13,057,089 members (45,079 online)
Rate this:
 
Please Sign up or sign in to vote.
Hi,

Can somebody highlight the uses please. Also, there are lot of unused usings being created in this file, is there anyway we can suppress them?
Posted 3-Jul-13 20:31pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Quote:
The g stands for generated, VS generates the wiring up between the code and the Xaml in this partial class.


i stands for Intellisense.
  Permalink  
Comments
Mohammed Hameed 4-Jul-13 3:07am
   
Wiring up is done with somefile.g.cs file but not with somefile.g.i.cs file. When I commented all code in g.i.cs file still it is working fine. Then what's the actual use of g.i.cs file?
Sushil Mate 4-Jul-13 3:12am
   
I guess when you recompiled your solution g.i.cs will be overwritten, did you check the file after recompiling?

what are the unused reference it has?
Mohammed Hameed 4-Jul-13 3:24am
   
Yes, obviously it will overwrite after rebuilding the project. But if I comment the code and just run the project (which means only build is happening), everything is fine. I mean I dont see any issue. So what is the exact use of g.i.cs file?
Mohammed Hameed 4-Jul-13 3:24am
   
These all are unused references:

using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
Sushil Mate 4-Jul-13 4:04am
   
I'm not sure you can removed this references. every time you recompile the solution it will re generate the file & the references will come.
Richard MacCutchan 4-Jul-13 4:05am
   
I already answered this in the Silverlight/WPF forum. Please do not post the same question in multiple places.
Mohammed Hameed 4-Jul-13 4:45am
   
Okay...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170728.6 | Last Updated 4 Jul 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100