Click here to Skip to main content
11,795,848 members (76,988 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: .NET2.0 C#2.0 .NET3.0 C#3.0 VS2008 , +

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
Please Sign up or sign in to vote.

Solution 1

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

i stands for Intellisense.
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

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

  Print Answers RSS
0 Maciej Los 350
1 Sergey Alexandrovich Kryukov 326
2 KrunalRohit 239
3 Andy Lanng 236
4 OriginalGriff 230
0 OriginalGriff 1,852
1 Maciej Los 1,465
2 KrunalRohit 1,300
3 CPallini 840
4 Richard MacCutchan 828

Advertise | Privacy | Mobile
Web03 | 2.8.151002.1 | Last Updated 4 Jul 2013
Copyright © CodeProject, 1999-2015
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