Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET2.0 C#2.0 .NET3.0 C#3.0 VS2008 , +
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 21: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 at 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 at 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 at 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 at 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 at 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 at 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 at 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
0 OriginalGriff 200
1 George Jonsson 175
2 Kornfeld Eliyahu Peter 169
3 PIEBALDconsult 110
4 Richard MacCutchan 85
0 OriginalGriff 6,080
1 DamithSL 4,648
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,624
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 4 Jul 2013
Copyright © CodeProject, 1999-2014
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